Page 2 of 2

Posted: Fri Dec 19, 2003 3:37 am
by Eric123
Weirdan wrote:When you uncheck the checkbox and then click submit, browser just don't send the checkbox value as a part of the request. So on the server side corresponding var is undefined. you need to test, if it's defined:

Code: Select all

if(isset($test)) echo $test;
or just suppress the notice:

Code: Select all

echo @$test;
Is it save to suppress the notices? I mean if I suppress all the notices, will there be any future unforesee problems? Just want to find out....

Posted: Fri Dec 19, 2003 3:37 am
by JayBird
is your line error_reporting = E_ALL & ~E_NOTICE exactly?

Posted: Fri Dec 19, 2003 4:01 am
by Eric123
Bech100 wrote:is your line error_reporting = E_ALL & ~E_NOTICE exactly?
Sorry, my apology. I have checked again, and found that there is another error_reporting = E_ALL at the bottom. Although I have enable error_reporting = E_ALL & ~E_NOTICE, there is one defaulted error_reporting = E_ALL down at the bottom, therefore, I still see the notices being displayed.

Now it is ok. Thanks.