Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require("global.php");
- echo'
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <LINK REL=StyleSheet HREF="main.css" TYPE="text/css" MEDIA=screen>
- <link rel="icon" href="img/thcfav.png" type="image/png">
- <title>Register</title>
- </head>
- <body>
- <div id="pageWrap">
- <div id="header">
- <p></p>';
- require("Header.php");
- echo'
- </div>
- <div id="main" class="left"><h3>Register</h3>
- <p></p>
- Register to receive chat and receive other benefits.<br />
- <center><table><form>
- <tr><td>Enter your username:</td>
- <td><input type="text" name="Uname" action="Register.php" method="post"/></td>
- </tr>
- <tr>
- <td>
- Enter your password:</td>
- <td><input type="password" name="Pswd" action="Register.php" method="post"/></td></tr>
- <tr><td>
- Confirm your password:</td>
- <td>
- <input type="password" name="Rpswd" action="Register.php" method="post"/></td></tr>
- <tr>
- <td>
- Enter your email:</td>
- <td>
- <input type="text" name="email" action="Register.php" method="post"/><br /></td></tr>
- <tr>
- <td>
- Confirm your email:</td>
- <td><input type="text" name="remail" action="Register.php" method="post"/><br /></td></tr></table>
- <u>Gender:</u><br />
- Male: <input type="radio" name="gender" value="Male" checked="checked" />
- Female: <input type="radio" name="gender" value="Female" /><br />
- <input type="submit" value="Submit" onClick="function()">
- </form></center>';
- $Pass = isset($_POST['Pswd']);
- $RPass = isset($_POST['Rpswd']);
- $Email = isset($_POST['email']);
- $REmail = isset($_POST['remail']);
- if ($Pass && $RPass < 6)
- echo "Passwords must contain at least six characters";
- if ($Pass == $RPass)
- echo"";
- else echo "Passwords did not match.";
- if ($Email == $REmail)
- echo "";
- else echo "Emails did not match.";
- $empty = "";
- switch ($empty)
- {
- case isset($_POST['Uname']):
- echo '<b>Username form not filled correctly.</b><br />'; break;
- case isset($_POST['Pswd']):
- echo '<b>Password form not filled correctly.</b><br />'; break;
- case isset($_POST['email']):
- echo '<b>Email form not filled correctly.</b><br />'; break;
- default:
- 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.';
- }
- echo '
- Note: You are not required to register to play the arcade games or get free scripts.
- </div>
- <div id="sidebar" class="right">
- <p></p>';
- require("Sidebar.php");
- echo'
- </div>
- <div id="footer">
- <h3><span></span></h3>
- <p></p>';
- require("footer.php");
- echo '</div>
- </div>
- </body>
- </html>';
- ?>
Add Comment
Please, Sign In to add comment