Guest User

Untitled

a guest
Aug 4th, 2018
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. <?php
  2.  
  3. require("global.php");
  4.  
  5. echo'
  6. <!DOCTYPE html>
  7. <html>
  8. <head>
  9. <meta charset="utf-8">
  10. <LINK REL=StyleSheet HREF="main.css" TYPE="text/css" MEDIA=screen>
  11. <link rel="icon" href="img/thcfav.png" type="image/png">
  12. <title>Register</title>
  13. </head>
  14. <body>
  15. <div id="pageWrap">
  16. <div id="header">
  17. <p></p>';
  18. require("Header.php");
  19. echo'
  20. </div>
  21. <div id="main" class="left"><h3>Register</h3>
  22. <p></p>
  23. Register to receive chat and receive other benefits.<br />
  24. <center><table><form>
  25. <tr><td>Enter your username:</td>
  26. <td><input type="text" name="Uname" action="Register.php" method="post"/></td>
  27. </tr>
  28. <tr>
  29. <td>
  30. Enter your password:</td>
  31. <td><input type="password" name="Pswd" action="Register.php" method="post"/></td></tr>
  32. <tr><td>
  33. Confirm your password:</td>
  34. <td>
  35. <input type="password" name="Rpswd" action="Register.php" method="post"/></td></tr>
  36. <tr>
  37. <td>
  38. Enter your email:</td>
  39. <td>
  40. <input type="text" name="email" action="Register.php" method="post"/><br /></td></tr>
  41. <tr>
  42. <td>
  43. Confirm your email:</td>
  44. <td><input type="text" name="remail" action="Register.php" method="post"/><br /></td></tr></table>
  45. <u>Gender:</u><br />
  46. Male: <input type="radio" name="gender" value="Male" checked="checked" />
  47. Female: <input type="radio" name="gender" value="Female" /><br />
  48. <input type="submit" value="Submit" onClick="function()">
  49.  
  50. </form></center>';
  51.  
  52.  
  53.  
  54. $Pass = isset($_POST['Pswd']);
  55. $RPass = isset($_POST['Rpswd']);
  56.  
  57. $Email = isset($_POST['email']);
  58. $REmail = isset($_POST['remail']);
  59.  
  60. if ($Pass && $RPass < 6)
  61. echo "Passwords must contain at least six characters";
  62.  
  63. if ($Pass == $RPass)
  64. echo"";
  65. else echo "Passwords did not match.";
  66.  
  67. if ($Email == $REmail)
  68. echo "";
  69. else echo "Emails did not match.";
  70.  
  71.  
  72. $empty = "";
  73.  
  74.  
  75. switch ($empty)
  76. {
  77. case isset($_POST['Uname']):
  78. echo '<b>Username form not filled correctly.</b><br />'; break;
  79. case isset($_POST['Pswd']):
  80. echo '<b>Password form not filled correctly.</b><br />'; break;
  81. case isset($_POST['email']):
  82. echo '<b>Email form not filled correctly.</b><br />'; break;
  83. default:
  84. echo 'You have been sent a confirmation email with a link please use the link within to confirm you wish to register else your account will be deleted.';
  85. }
  86.  
  87. echo '
  88. Note: You are not required to register to play the arcade games or get free scripts.
  89. </div>
  90. <div id="sidebar" class="right">
  91. <p></p>';
  92. require("Sidebar.php");
  93. echo'
  94. </div>
  95. <div id="footer">
  96. <h3><span></span></h3>
  97. <p></p>';
  98. require("footer.php");
  99. echo '</div>
  100. </div>
  101. </body>
  102. </html>';
  103. ?>
Add Comment
Please, Sign In to add comment