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. 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']; } Link to comment https://forums.phpfreaks.com/topic/194778-undefined-index/#findComment-1024238 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.