Hi All,
I have a script that relies on a numeric variable from GET. I am trying to figure out how to have a 'default' value if no GET value is passed in the url.
I have been trying to get it to work with if() but no joy:
$par2 = $_GET['par1'];
if(empty($par2))
{ $par = 4;
} $par = $par2...
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.