SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist sputza's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post Forms: On submit the form resets

    Hello,

    I have a form that the results open in a new window. What I need is once the form is submitted and the results are opened in a new window, the form that was filled out will be reset. Can this be done? If I'm not making any sense let me know and I will try to clarify it for you.

    Any help will be greatly appreciated.

    Thanks,
    Steven Watkins

  2. #2
    My precious!!! astericks's Avatar
    Join Date
    Mar 2002
    Location
    Vancouver, BC
    Posts
    1,971
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm pretty sure this can be done this way:

    [unsure]
    For the submit button, add a target="_blank" to its <a> tag [link tag] and do the processing of the results.
    [/unsure]

    To reset the form, on submit, try redirecting the page to the same page...it will thus load again and will be reset.

    code:
    <input type="hidden" name="redirect" value="myform.htm">

    asT.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •