Resetting GET query values

V

Vince Morgan

Hi all,
I have a POST form that also includes some anchors/links.
If a user clicks a link, that link remains set so that pressing the submit
button later not only sends the appropriate POST value, but also passes the
previous link value.
What I would dearly love to do is remove the query string after dealing with
the passed value so that it isn't pased again when the submit button is
susequently pressed.
Would form.reset() be the right way to go here?
I'd be very gratefull for a solution to this.
TIA,
Vince
 
G

Grant

Hi all,
I have a POST form that also includes some anchors/links.
If a user clicks a link, that link remains set so that pressing the submit
button later not only sends the appropriate POST value, but also passes the
previous link value.
What I would dearly love to do is remove the query string after dealing with
the passed value so that it isn't pased again when the submit button is
susequently pressed.
Would form.reset() be the right way to go here?

Would that be server-side? Like: print "Status: 205 Reset Content\n" ?

According the RFC <mumble> it resets the form that submitted to the
server, but I've only used this for GET, not POST. Confusing me is
you have GET in subject line and POST in text?

Grant.
 
V

Vince Morgan

Grant said:
Would that be server-side? Like: print "Status: 205 Reset Content\n" ?

According the RFC <mumble> it resets the form that submitted to the
server, but I've only used this for GET, not POST. Confusing me is
you have GET in subject line and POST in text?

Yes, that could be a bit confusing. The GET var is being set via links
within the POST form.
If I've got this right the client is sending the GET query string on [every]
form submision once a link has been clicked any time previously. The forms
method is POST, but it also contains about 30 <a> links.
I need to prevent the GET query string being sent again for every subsequent
form submission.
I'll try your method and see how it goes.
Thanks,
Vince
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,139
Messages
2,570,805
Members
47,351
Latest member
LolaD32479

Latest Threads

Top