Hi there
I've got a bit of HTML embedded in a PHP file something like:
<a href="abc.php?action=1">buy this product</a>
<a href="abc.php?action=2">buy this one</a>
<a href="abc.php?action=3">buy the third one</a>
With register_globals on I can read $action in abc.php to find out what was selected.
With register_globals off I can't see $action and presumably must set a session variable... the only thing is I can't work out in this case how to set the session variable at the moment the user clicks on the link.
I don't want to replace the links with check boxes and then a "submit" button as that will take the user two clicks to get to the abc.php page rather than the one I want.
All help appreciated
Thanks
-Colin
I've got a bit of HTML embedded in a PHP file something like:
<a href="abc.php?action=1">buy this product</a>
<a href="abc.php?action=2">buy this one</a>
<a href="abc.php?action=3">buy the third one</a>
With register_globals on I can read $action in abc.php to find out what was selected.
With register_globals off I can't see $action and presumably must set a session variable... the only thing is I can't work out in this case how to set the session variable at the moment the user clicks on the link.
I don't want to replace the links with check boxes and then a "submit" button as that will take the user two clicks to get to the abc.php page rather than the one I want.
All help appreciated
Thanks
-Colin