heyhey01 Posted March 10, 2010 Share Posted March 10, 2010 Hey i am creating a php app that requires a log in so i have made it but i keep getting this error Notice: Undefined index: email and the same comes up for password. Am not sure how to fix this error so any help on how to fix it would be helpful. Quote Link to comment https://forums.phpfreaks.com/topic/194778-undefined-index/ Share on other sites More sharing options...
Adam Posted March 10, 2010 Share Posted March 10, 2010 It's a notice informing you that you're trying to access an array index that doesn't exist. // bad echo $array['index']; // good if (isset($array['index'])) { echo $array['index']; } Quote Link to comment https://forums.phpfreaks.com/topic/194778-undefined-index/#findComment-1024238 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.