Re: if $submit

From: Date: Mon, 21 May 2001 14:57:04 +0000
Subject: Re: if $submit
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-53730@lists.php.net to get a copy of this message
For the sake of completeness, whenever PHP encounters a reference to a variable which has not been set it will throw a warning. The reason most people don't see that behavior is that their version of PHP uses the default setting of "show all errors but don't mention the warnings". If they use: error_reporting(E_ALL); ...they'll probably see a whole bunch of ugly little warnings. Useful for debugging, annoying as all heck for production code. Plutarck "Tarrant Costelloe" <tcostelloe@insur-e.net> wrote in message news:B8DC55700B11DA4F8AA61B2803F3D1A805C4DF@insure-ems.insur-e.net... > Whenever I use the <? if ($submit) >? statement in a php page it always > comes up with: > > Warning: Undefined variable > Until the submit has been hit, and then it continue on with the rest of the > script fine ( ifelse). > > How do you stop this warning message? > > Thanks in advance! > > Tarrant Costelloe > Web Developer > InsurE-com Ltd. > ------------------------------------ > Office Tel: +44 (0)1273 852014 > Mobile: +44 07714087114 > tcostelloe@insur-e.net > http://www.insur-e.net > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#53730) next »