1# First I want to check the value doesn't exist or has been set in the config file
2# if not then check if it has been set in the form
3# then if not set a default value for $var
So to cut down on the if, elseif's I tried to do it as follows:
Code: Select all
$var = (isset($var)) ? $_POST['var'] : 'DEFAULT_VALUE';anyone any idea?
Thanks