How do I clear $_GET from my url?
Posted on 2010-09-05
Bit tricky to explain... I have a script which when submited, will return to the same page with the $_GET variables. If I submit the page again, I need it to forget the original variables and replace the url with the new variables.
So the url might look like http://www.mysite.com?id=123&price=1099
When i resubmit the form with different variables, e.g. ID = 567 & Price = 2083 i want the url to look like: http://www.mysite.com?id=567&price=2083
However what actually comes up is http://www.mysite.com?id=567&price=2083&id=123&price=1099.
Can anyone help?