"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