Re: PHP Notice: Undefined index
| From: | John Nichel | Date: | Sat, 20 May 2006 00:20:57 +0000 |
| Subject: | Re: PHP Notice: Undefined index | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-236544@lists.php.net to get a copy of this message | ||
John Taylor-Johnston wrote:
Any idea why this bit of code if("yes" == $_POST['submitter']) { mysql_select_db($db,$myconnection); $sql = "INSERT INTOYes. -- By-Tor.com ...it's all about the Rush http://www.by-tor.com$db.$table(name,email,comments,entrydate) values ('$name','$email','$comments','$entrydate')"; mysql_query($sql) or die(print mysql_error()); } is provoking this message in my Apache error log? [Fri May 19 19:05:10 2006] [error] PHP Notice: Undefined index: submitter in /home/jtjohnston/domains/jtjohnston.ca/public_html/comments.php on line 29