Page 1 of 1

Pesky PHP Errors

Posted: Tue Apr 04, 2006 4:58 am
by Josh
[quote name=\'PHP Error\']Notice: Undefined index: submit in d:\web\_files\register.php on line 5[/quote]
[quote name=\'Line 5\']$submitted = $_GET[\'submit\'];[/quote]

Does anyone know how to get rid of this pesky php error? I have a feeling it might be the error reporting in php config, but it\'s late and I\'m not sure lol.

Thanks in advanced,
/d

Pesky PHP Errors

Posted: Tue Apr 04, 2006 8:33 am
by Scott
error_reporting(E_ALL ^E_NOTICE);

Shove that at the top of the php script and you\'re fine. You can change it in php.ini if you like.

Pesky PHP Errors

Posted: Tue Apr 04, 2006 12:32 pm
by Josh
Thanks, Scott! /biggrin.gif\' class=\'bbc_emoticon\' alt=\':D\' />