I have an application where a control variable (let's call it $mo) is passed from one HTML page to an action script which may display a page or not.
In some cases I pass the variable in the URL ($GET) in the next script and sometimes I pass the variable in a form via post ($POST). The action script needs to allow either to be assigned to a variable in the recieving script.
Is this ok? And if so, which should be assigned first:
1)
$mo=$GET['mo'];
$mo-$POST['mo'];
or
2)
$mo-$POST['mo'];
$mo=$GET['mo'];
Thanks,
Richard