Al wrote:
When handling $_POST[] values that may or may not be assigned, I am forever using:

if((isset($_POST['courses_list']) AND $_POST['courses_list']== 'Used'))

Is there a shorthand way of doing this without causing notice errors?

Thanks.....


Before your condition:

$courses_list = isset($_POST['courses_list']) ? $_POST['courses_list'] : '';

then:

if($courses_list == 'Used'))


Sure, does not help any for a single condition.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to