[PHP] Re: PHP Notice: Undefined variable

2003-10-04 Thread Jon Kriek
Simply lower your error reporting level. If you do not have access to your php.ini (not everyone does), then can you can amend this directive in either .htaccess or even on a per script basis by using the error_reporting() function like so. error_reporting(2039); (Equivalent to E_ALL & ~E_NOTICE)

[PHP] Re: PHP Notice: Undefined variable

2003-10-04 Thread Comex
<[EMAIL PROTECTED]> Nabil: > I got PHP Notice: Undefined variable > > Should I define always any var ?? when do I have do define a var?? > > example if I want to write > if ($_POST['msg'] =='hi') > { > do something ... > } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit