Created
March 9, 2010 00:25
-
-
Save ExperimentGarden/325998 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="index.php" method="post" enctype="application/x-www-form-urlencoded"> | |
<h3>Register</h3> | |
<b>Name</b> <br /> | |
<input type='text' name='registerUsername' /> | |
<?php | |
if($name_exists) | |
{ | |
echo "The name you chose is already taken."; | |
} | |
else if($name_needed) | |
{ | |
echo "Please enter your name."; | |
} | |
?> | |
<br /> | |
<b>Email Address</b> <br /> | |
<input type='text' name='registerEmail' /> | |
<?php | |
if($email_exists) | |
{ | |
echo "That email address is already taken."; | |
} | |
else if($bad_email) | |
{ | |
echo "This doesn't look like an email address."; | |
} | |
?> | |
<br /> | |
<b>Password</b> <br /> | |
<input type='password' name='registerPassword1' /> | |
<?php | |
if($password1_needed) | |
{ | |
echo "Please enter a password."; | |
} | |
?> | |
<br /> | |
<input type='password' name='registerPassword2' /> | |
<?php | |
if($password2_needed) | |
{ | |
echo "Please reenter your password."; | |
} | |
else if($passwords_dont_match) | |
{ | |
echo "The two passwords don't match. Please try again."; | |
} | |
?> | |
<input type='hidden' value='dummy' name='register' /> | |
<br /> <br /> | |
<input type='submit' value='Register' /> | |
<?php | |
if($register_success) | |
{ | |
echo "You were registered successfully."; | |
} | |
?> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment