You can test if a variable has been set by using the command:
isset()

eg

if (isset($my_name))
    echo "hi";
else
    echo "no name set";

This will stop any undefined variable warnings.

Neil

Maurice Schalker wrote:

> After an update to 4.06 my guestbook isnīt working correct.
> Between de code, i get an error :
> Undefinde variable ? What went wrong?
>
> --
> 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]
>
> ***************************************************************
>  This message was virus checked with: SAVI 3.50
>  last updated 23rd October 2001
> ***************************************************************

--
--------------------------------
 Email:  [EMAIL PROTECTED]
         [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