I have a form using the GET method and also I'm using the action method to also pass on some URL variables:
<form action="items.php?a=1&b=2" method="get">...</form>
In items.php I use $_REQUEST to parse the contents of a,b vars but unless I use POST as method in the form, the variables appear empty or non-existent.
I've read about the differences between POST, GET, REQUEST but I'm not sure how to tackle this issue. I need the form to use GET so that it caches the results and when a user selects a result and then clicks back in his browser, he returns to the result set.
<input type="hidden" name="a" value="1" /><input type="hidden" name="b" value="2" />inside the form.