Posts

Showing posts from March 30, 2020

Write a PHP Program to prepare student Mark sheet using Switch statement.

Image
Write a PHP   Program to prepare student Mark sheet using Switch statement. <html> <head> <title> Marksheet</title> </head> <body> <form name="frmdemo" action="practicle.8aphp" methd="post"> <feild set> <legend align="center">Enter Your Name With Markes Detail</legend> <table width="250px"border="2"alogn="center"> <tr> <td> <align=right>Name</td> <td><input type="text name="txtname"></td> </tr> <tr> <td> <align="right">Subject-1</td> <td><input type="text" name="txtsub-1"></td> </tr> <tr> <td> <align="right">Subject-2</td> <td><input type="text" name="txtsub-2"></td> </tr> <tr> &

Write a PHP Program to display “Hello World” Message on Screen.

Image
Write a   PHP Program to display “Hello World” Message on Screen. <!DOCTYPE html> <html> <head>           <title>Practical-1</title> </head> <body> <?php echo"<b>Hello</b> <i>World</i>"; ?> </body> </html> OUTPUT:-   Hello   World

Write a PHP Program that will use the concept form.

Write   a PHP Program that will use the concept form. <!DOCTYPE html> <html> <head>           <title>Practical-5</title> </head> <body> <?php if (isset($_REQUEST['submit']))   {           $name=$_REQUEST['txtname'];           $cno=$_REQUEST['txtcno'];           echo "<b>Your Name is :</b>".$name."<br>";           echo "<b>Contact No :</b>".$cno; } else {           echo "Go Back and Press Submit Button…";    } ?> </body> </html> OUTPUT:- Go Back and Press Submit Button…