Advertisement
MaryPotsi35

Untitled

Mar 27th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. {HTML}
  2. <!doctype html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <title>Untitled Document</title>
  7. </head>
  8.  
  9.  
  10.  
  11. <body style="background-color:powderblue;">
  12. <form action=ind.php method=get>
  13. <center>
  14. <h2> <b> My_web_app </b> <br> </h2>
  15. <h3> Name:<br>
  16. <input type="text" name="NAME"><br>
  17. Surname:<br>
  18. <input type="text" name="SURNAME"><br>
  19. Age:<br>
  20. <input type="text" name="AGE"><br>
  21. Telephone:<br>
  22. <input type="text" name="TELEPHONE"><br>
  23. Address:<br>
  24. <input type="text" name="ADDRESS"><br>
  25. </h3>
  26. <h4><input type="submit"> </h4>
  27. </center>
  28. </form>
  29.  
  30. </body>
  31. </html>
  32. {PHP}
  33. <html>
  34. <head>
  35. </head>
  36. <body>
  37.  
  38. Welcome <?php
  39. $name=$_GET['NAME'];
  40. $surname=$_GET['SURNAME'];
  41. $age=$_GET['AGE'];
  42. $telephone=$_GET['TELEPHONE'];
  43. $address=$_GET['ADDRESS'];
  44. //echo "<table aligh=center border=2> <tr> <td>";
  45.  
  46. echo "<table align=center border=40>";
  47. echo "<tr><th>Name</th><th>Surname </th><th>Age</th><th>Telephone </th><th> Address </th></tr>";
  48. echo "<tr><td> ".$name."</td><td>".$surname."</td><td>".$age."</td><td>".$telephone."</td><td> ".$address." </td></tr>";
  49. echo "</table>";
  50. /*
  51. echo "your name is ".$name." and ";
  52. echo "surname is ".$surname." and <br>";
  53. echo "your age is ".$age." and ";
  54. echo "<br> your telephone is ".$telephone." and ";
  55. echo "<br> your address is ".$address;
  56. echo "</td> </tr> </table>";*/
  57. ?>
  58.  
  59. </body>
  60.  
  61. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement