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 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. 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 } 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 Link to comment https://forums.phpfreaks.com/topic/169497-solved-notice-error/#findComment-894452 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.