Advertisement
Guest User

Untitled

a guest
Nov 2nd, 2016
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <html>
  4.  
  5. <head>
  6. <title>Homework 1</title>
  7. </head>
  8.  
  9. <body>
  10.  
  11. <h1 align="right">Homework 1</h1>
  12.  
  13.  
  14. <form action="demo_form.asp" method="get" align="right">
  15.  
  16.  
  17. User name: <input type="text" name="uname"><br>
  18. Password: <input type="text" password="pw"><br>
  19. Full Name: <input type="text" name="fname"><br>
  20. Home address: <input type="text" address="address"><br>
  21. Age: <input type="text" age="age"><br>
  22. Phone #: <input type="text" number="phonenumber"><br>
  23. Gender:
  24. <input type="radio" name="gender" value="male">
  25. Male
  26. <input type="radio" name="gender" value="female">
  27. Female<br>
  28. Years of College: <select>
  29. <option value="Freshman">Freshman</option>
  30. <option value="Sophmore">Sophmore</option>
  31. <option value="Junior">Junior</option>
  32. <option value="Senior">Senior</option>
  33. </select><br>
  34.  
  35. <input type="submit" value="Submit">
  36. </form>
  37.  
  38. <?php
  39. Username: <?php echo $_POST["uname"] '<br>'; ?><br>
  40. Email: Your email address is: <?php echo $_POST["pw"] '<br>'; ?>
  41. Full Name: <?php echo $_POST["fname"] '<br>'; ?>
  42. Home address: <?php echo $_POST["address"] '<br>'; ?>
  43. Age: <?php echo $_POST["age"] '<br>'; ?>
  44. Phone #: <?php echo $_POST["phonenumber"] '<br>'; ?>
  45. Gender: <?php echo $_POST["gender"] '<br>'; ?>
  46. ?>
  47.  
  48. </body>
  49. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement