John Manko <[EMAIL PROTECTED]> wrote: > I've tried checking if $_POST and $_GET vars are set with just > > if($_POST['yuck']) > > When 'yuck' is not present my code always explodes with > *"Notice*: Undefined index: yuck" on the page output.
You can use the @ error suppressor. if (@$_POST['yuck'])) > I never see any mention in the codes examples referencing a php > function that instructs the preprocessor not to output > such messages, but I've seen this used a lot of places. > I'm forced to use isset() with everything. Now, if there is > a switch to set in php.ini, this will do my no good since I > only have access to it on my dev box. Am I missing out > on something here, or do people just accept such messages (doubt it). if you dont want to use the @ other alternatives are: 1. .htaccess is turned on, you can issue a php_value to set the error reporting. 2. use ini_set(). HTH, Curt -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php