By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,741 Members | 2,004 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,741 IT Pros & Developers. It's quick & easy.

Resetting GET query values

P: n/a
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
Oct 7 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Tue, 7 Oct 2008 19:12:35 +1000, "Vince Morgan" <vinharAtHereoptusnet.com.auwrote:
>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 <mumbleit 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.
--
http://bugsplatter.id.au/
Oct 7 '08 #2

P: n/a

"Grant" <g_********@dodo.com.auwrote in message
news:k6********************************@4ax.com...
On Tue, 7 Oct 2008 19:12:35 +1000, "Vince Morgan"
<vinharAtHereoptusnet.com.auwrote:
>
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 <mumbleit 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 <alinks.
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
Oct 8 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.