BrettHartel Posted December 17, 2012 Share Posted December 17, 2012 Thank you for helping me! For some reason $eMail gets set to nothing. I have the results echo and it is completely blank. What am I doing wrong? $eMail = $_Post['eMail']; $eMailResult = mysql_query("SELECT eMail FROM eMail WHERE eMail='$eMail'"); if (mysql_num_rows($eMailResult) == 0){/* eMail is Unique */} else { $Error = "eMail already exists!"; setcookie( "SignUp_Error", "$Error", time()+30, "/", ".diamondbookclub.com" ); setcookie( "LogIn_Error", "$Error", time()-1, "/", ".diamondbookclub.com" ); header('Location: index.php'); exit(0); } Sincerely, Brett Hartel Link to comment https://forums.phpfreaks.com/topic/272114-after-selecting-form-database-how-to-i-preserve-the-variable/ Share on other sites More sharing options...
requinix Posted December 17, 2012 Share Posted December 17, 2012 Variable names are case-sensitive. $_Post != $_POST (and guess which one is right). Link to comment https://forums.phpfreaks.com/topic/272114-after-selecting-form-database-how-to-i-preserve-the-variable/#findComment-1399965 Share on other sites More sharing options...
BrettHartel Posted December 17, 2012 Author Share Posted December 17, 2012 OMG! I have been trying to change this code around for hours on end! THANK YOU SO MUCH REQUINIX!!!!! Link to comment https://forums.phpfreaks.com/topic/272114-after-selecting-form-database-how-to-i-preserve-the-variable/#findComment-1399966 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.