Re: [PHP] PHP Notice: Undefined index

2006-05-22 Thread Richard Lynch
On Fri, May 19, 2006 6:08 pm, John Taylor-Johnston wrote: Any idea why this bit of code if(yes == $_POST['submitter']) { mysql_select_db($db,$myconnection); $sql = INSERT INTO `$db`.`$table` (name,email,comments,entrydate) values ('$name','$email','$comments','$entrydate');

Re: [PHP] PHP Notice: Undefined index

2006-05-22 Thread jtjohnston
Now I get it. Must be the version change? Richard Lynch a écrit: On Fri, May 19, 2006 6:08 pm, John Taylor-Johnston wrote: Any idea why this bit of code if(yes == $_POST['submitter']) { is provoking this message in my Apache error log? [Fri May 19 19:05:10 2006] [error] PHP Notice:

Re: [PHP] PHP Notice: Undefined index

2006-05-22 Thread John Taylor-Johnston
Hi, Thanks. I see it, I get it, it makes sense. But it seems like overkill. So what version did this become necessary in? http://php.net/isset New server, new version. Or I had errors turned off on the old server. Thanks! John elseif ( (isset($_POST[number])) and (isset($_POST[submitter]))

[PHP] PHP Notice: Undefined index

2006-05-19 Thread John Taylor-Johnston
Any idea why this bit of code if(yes == $_POST['submitter']) { mysql_select_db($db,$myconnection); $sql = INSERT INTO `$db`.`$table` (name,email,comments,entrydate) values ('$name','$email','$comments','$entrydate'); mysql_query($sql) or die(print mysql_error()); } is provoking

RE: [PHP] PHP Notice: Undefined index

2006-05-19 Thread Brady Mitchell
Any idea why this bit of code if(yes == $_POST['submitter']) { mysql_select_db($db,$myconnection); $sql = INSERT INTO `$db`.`$table` (name,email,comments,entrydate) values ('$name','$email','$comments','$entrydate'); mysql_query($sql) or die(print mysql_error()); }

Re: [PHP] PHP Notice: Undefined index

2006-05-19 Thread Martin Alterisio
2006/5/19, John Taylor-Johnston [EMAIL PROTECTED] : Any idea why this bit of code if(yes == $_POST['submitter']) { mysql_select_db($db,$myconnection); $sql = INSERT INTO `$db`.`$table` (name,email,comments,entrydate) values ('$name','$email','$comments','$entrydate');

Re: [PHP] PHP Notice: Undefined index

2006-05-19 Thread John Nichel
John Taylor-Johnston wrote: Any idea why this bit of code if(yes == $_POST['submitter']) { mysql_select_db($db,$myconnection); $sql = INSERT INTO `$db`.`$table` (name,email,comments,entrydate) values ('$name','$email','$comments','$entrydate'); mysql_query($sql) or die(print