My users arrive on the page, optionally with a query string.
The query string data - if present - goes into a textarea element in a form, where it may be edited, then POSTed back to the page with the submit button.
Now I have a bit of a mess because the query string, which was ignored when the the form posted data, is showing obsolete information.
i.e. the user arrives with ?fruit=apple, changes apple to pear in the form, submits the form, now the form says pear, (and I've goe my pear products listed below, which is the point of the page) but the query string still says ?fruit=apple.
That seems harmless, but it's messy and may confuse the user.
So what I want is to clear the query string from the URL whenever the form is posted.
Clear as mud?
I hope someone can offer a suggestion, I'm stumped.