php code in iis/apache

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Eric123
Forum Newbie
Posts: 5
Joined: Fri Dec 19, 2003 12:58 am

Post 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....
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

is your line error_reporting = E_ALL & ~E_NOTICE exactly?
Eric123
Forum Newbie
Posts: 5
Joined: Fri Dec 19, 2003 12:58 am

Post 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.
Post Reply