Advertisement
Guest User

Untitled

a guest
Jun 17th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. <?php
  2. echo "<h1>Register</h1>";
  3.  
  4. $submit = $_POST['submit'];
  5.  
  6. //form data
  7. $fullname = $_POST['fullname'];
  8. $username = $_POST['username'];
  9. $password = $_POST['password'];
  10. $repeatpassword = $_POST['repeatpassword'];
  11.  
  12. if ($submit)
  13. {
  14.  
  15. echo "$username/$password/$repeatpassword/$fullname";
  16.  
  17. }
  18.  
  19. ?>
  20.  
  21. <html>
  22.  
  23. <form action='register.php'>
  24. <table>
  25. <tr>
  26. <td>
  27. Your full name:
  28. </td>
  29. <td>
  30. <input type='text' name='fullname'>
  31. </td>
  32. </tr>
  33. <tr>
  34. <td>
  35. Choose a username::
  36. </td>
  37. <td>
  38. <input type='text' name='username'>
  39. </td>
  40. </tr>
  41. <tr>
  42. <td>
  43. Choose a password:
  44. </td>
  45. <td>
  46. <input type='password' name='password'>
  47. </td>
  48. </tr>
  49. <tr>
  50. <td>
  51. Repeat your password:
  52. </td>
  53. <td>
  54. <input type='password' name='repeatpassword'>
  55. </td>
  56. </tr>
  57. </table>
  58. <p>
  59. <input type='submit' name='submit' value='register'>
  60. </form>
  61.  
  62. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement