xyn Posted August 16, 2007 Share Posted August 16, 2007 Hey, I've never occured this problem before; wondering if anyone knows a way of getting around it? Basically the error is returning: "Notice: Undefined index: email in \files\lost_password.php on line 34" line 34 is... $sql_users_email = mysql_query("SELECT `first_name`, `account_password` FROM `intranet_accounts` WHERE `account_email`='".Secure($_POST['email'])."'"); Quote Link to comment https://forums.phpfreaks.com/topic/65206-notice-undefined-index-email-in/ Share on other sites More sharing options...
gerkintrigg Posted August 16, 2007 Share Posted August 16, 2007 Secure should begin with $ perhaps? never seen "Secure" before. lowercase maybe? Quote Link to comment https://forums.phpfreaks.com/topic/65206-notice-undefined-index-email-in/#findComment-325599 Share on other sites More sharing options...
thedarkwinter Posted August 16, 2007 Share Posted August 16, 2007 yes, what is secure? Also, im assuming that you have checked that "email" has been posted? Quote Link to comment https://forums.phpfreaks.com/topic/65206-notice-undefined-index-email-in/#findComment-325604 Share on other sites More sharing options...
HuggieBear Posted August 16, 2007 Share Posted August 16, 2007 It means that $POST['email'] isn't defined. (Not set) Use isset() first to see if it exists. Regards Huggie Quote Link to comment https://forums.phpfreaks.com/topic/65206-notice-undefined-index-email-in/#findComment-325606 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.