Skip to content

Instantly share code, notes, and snippets.

@george
Created October 26, 2012 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save george/3961115 to your computer and use it in GitHub Desktop.
Save george/3961115 to your computer and use it in GitHub Desktop.
if($_POST[email] != '')
{
$p = db_query_row("select user_userID from student where email = '$_POST[email]'");
if($p[user_userID]) // taken
{
js_alert("Sorry, that email address has an account already. If you lost your password please go to the lost password page from the login screen.");
js_back();
die("Redirecting ...");
}
}
$p = db_query_row("select user_userID from student where email = '$_POST[email]'");
if($p[user_userID]) // taken
{
js_alert("Sorry, that email address has an account all ready. If you lost your password please goto the lost password page from the login screen.");
js_back();
die("Redirecting ...");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment