Pesky PHP Errors

Support, Snippets & Projects

Moderators: Moderator, Global Moderator

Post Reply
Josh
Hero Member
Hero Member
Posts: 4627
Joined: Fri Jun 04, 2004 7:54 am

Pesky PHP Errors

Post 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
[align=center]

Image

“If you stop learning, you stop living.” ~Tami Quiring

“It's the rare man who understands the value of a single perfect rose.”

[/align]
Scott
Administrator
Administrator
Posts: 1651
Joined: Sun Apr 25, 2004 6:08 am

Pesky PHP Errors

Post 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.
Josh
Hero Member
Hero Member
Posts: 4627
Joined: Fri Jun 04, 2004 7:54 am

Pesky PHP Errors

Post by Josh »

Thanks, Scott! /biggrin.gif' class='bbc_emoticon' alt=':D' />
[align=center]

Image

“If you stop learning, you stop living.” ~Tami Quiring

“It's the rare man who understands the value of a single perfect rose.”

[/align]
Post Reply

Return to “PHP & MySQL”