chanfuterboy Posted August 9, 2009 Share Posted August 9, 2009 hi, Hi, what can be the cause of this error Notice: Undefined index: submit in /var/www/html/test/item.php on line 9 Quote Link to comment https://forums.phpfreaks.com/topic/169497-solved-notice-error/ Share on other sites More sharing options...
.josh Posted August 9, 2009 Share Posted August 9, 2009 trying to use an element in an array that doesn't exist. Quote Link to comment https://forums.phpfreaks.com/topic/169497-solved-notice-error/#findComment-894291 Share on other sites More sharing options...
wildteen88 Posted August 9, 2009 Share Posted August 9, 2009 I'm guessing you're doing if($_POST['submit']) { // processing form here } You should check whether $_POST['submit'] exists first before using it. Example if(isset($_POST['submit'])) { // processing form here } Quote Link to comment https://forums.phpfreaks.com/topic/169497-solved-notice-error/#findComment-894305 Share on other sites More sharing options...
chanfuterboy Posted August 10, 2009 Author Share Posted August 10, 2009 thanks Quote Link to comment https://forums.phpfreaks.com/topic/169497-solved-notice-error/#findComment-894452 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.