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" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
> [EMAIL PROTECTED]
> http://www.insur-e.net
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to