So if I have a value which gets passed in the URL like so:
index.php?weight=200
if there is no weight defined, I would like to use a default value of 200
if it is defined, I would like to use the value that has been passed.
However, I have tried a quick IF to set the variable, but it's not working...
Thanks,
if ($weight==""){
$weight = 200;
}