I am using multiple select elements on a page. This page's url is something like this: "index.php?s=foo"
.
Now I want that changing my select boxes will alter my URL and refresh page, this just works partly :( Here is the example:
<form action="'.$_SERVER['REQUEST_URI'].'" method="GET">
<select name="this" onchange="this.form.submit()">
<option value="1">Value 1</option>
<option value="2">Value 2</option>
<option value="3">Value 3</option>
</select>
</form>
So if I change my selection the url will swap to "index.php?this=1"
, but I would like to hold the previous _GET Parameters, so change would occur to "index.php?s=foo&this=1"
.
Any chance I would get that?
Thanks very much for your help. Best Regards