Im taking Im doing something stupid here? I thought it was clever...
just learned a little more about isset.
$a = (isset($_GET['a'])) ? $_GET['a'] : (isset($_POST['a'])) ?
$_POST['a'] : "";
I guess you can see what try each successive one in turn as we can
alternate between the two.
But it doesn't seem to be working.
For example, if I construct a URL for:
somepage.php?a= something
In the script, $a is not something, $a = "".
But if I post on a form, then $a="something" .
If I switch the syntax round to POST first then GET, then I get a reversal.
It's like the first isset is being ignored.
I take it I can't have nested issets in this fashion?
Cheers
Simon