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 Quote 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 Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.