poqoz-87 Posted May 11, 2007 Share Posted May 11, 2007 can someone tell me what does this error means? n how can i solve it? this the error that i m referring to: PHP Notice: Undefined index: gender in C:\Inetpub\wwwroot\done-all-de-steps\Untitled-6-1n2n3n4nbannern7err.php on line 112 Link to comment https://forums.phpfreaks.com/topic/50900-solved-what-does-this-errorphp-notice-undefined-index-means-help-plz/ Share on other sites More sharing options...
chronister Posted May 11, 2007 Share Posted May 11, 2007 From my experience this is because your trying to use a variable before it is defined. I have gotten this when verifying form submission. e.g. <?php if(!$_POST['submit']){ //form is not submitted so show the form } else { //process the form here because it has been submitted. } ?> My solution... maybe not the best, but it worked. Set the error reporting a little higher in php.ini. right now it is probably set to E_ALL or E_NOTICE. Try setting it to E_WARNING or E_ERROR and you should see that notice go away. regards, Nate Link to comment https://forums.phpfreaks.com/topic/50900-solved-what-does-this-errorphp-notice-undefined-index-means-help-plz/#findComment-250338 Share on other sites More sharing options...
poqoz-87 Posted May 11, 2007 Author Share Posted May 11, 2007 thank you. it work now-after i change E-ALL to E-WARNING in the php.ini. Link to comment https://forums.phpfreaks.com/topic/50900-solved-what-does-this-errorphp-notice-undefined-index-means-help-plz/#findComment-250366 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.