Phil, 
Besides just turning off Warnings, the warning is a tad valid.  Here's what I learned 
when I spoke with some gurus at the php conference...
They said that the proper way to test for the presence of a variable now is using the 
isset (or empty) functions.  If you do the old way like I used to do:
if($variable){
then do this
}
and variable doesn't exist..you'll get a warning pop up if you've left them on.  The 
proper way to test for a variable is to say:
if(isset($variable)){
then do this
}

or 

if(empty($variable)){
then do this
}
check the manual on php for the difference in those two, they can be quite useful.

Angie :)

>>> "Johannes Janson" <[EMAIL PROTECTED]> 08/22/01 07:14AM >>>
hi,

> I have just reinstalled my win2k system and installed the latest version
of
> PHP (4.06), now when I run a lot of my old scripts I get errors like the
one
> below, when I access the page before posting any data to it.  The example
> below is taken straight from a tutorial site.  I'm not sure if this is a
> change in PHP since 4.01 which I had been using or what ?
>
> Can anyone help please ?!
>
> Thanks
>
> Phil
>
> Warning: Undefined variable: name in u:\inetpub\wwwroot\php\form5.php on
> line 7

That's just a warning not an error mesage. Change the error_reporting in the
php.ini
to E_ALL (I think it is) or put error_reporting(7) on top of the scripts.

cheers
johannes



-- 
PHP Windows 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 Windows 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