PHP explodes without using isset()

From: Date: Wed, 16 Jul 2003 16:37:09 +0000
Subject: PHP explodes without using isset()
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-155465@lists.php.net to get a copy of this message
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. 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).

« previous php.general (#155465) next »