Resetting GET query values

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vince Morgan

    Resetting GET query values

    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


  • Grant

    #2
    Re: Resetting GET query values

    On Tue, 7 Oct 2008 19:12:35 +1000, "Vince Morgan" <vinharAtHereop tusnet.com.auwr ote:
    >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.
    --

    Comment

    • Vince Morgan

      #3
      Re: Resetting GET query values


      "Grant" <g_r_a_n_t_@dod o.com.auwrote in message
      news:k6bme4lo53 q2069stqu3f8b26 5bd78the1@4ax.c om...
      On Tue, 7 Oct 2008 19:12:35 +1000, "Vince Morgan"
      <vinharAtHereop tusnet.com.auwr ote:
      >
      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


      Comment

      Working...