SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot boballoo's Avatar
    Join Date
    Dec 2001
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Refreshing page after filling out form

    I have a subscription form on my site. When someone fills out the form correctly they get sent to a "Thankyou" page and then returned automatically to the page they came from after 6 seconds using:

    "onload=setTimeout("location.href='javascript:history.go(-1)'",6000)"

    The problem is that when they get sent back to the previous page the form fields still contain their email address and name. Is there some way to "Refresh" this page in the process so that the email and name are no longer there?
    EditFast
    Any Document --> Any Time!
    Web Site Copy Editing & Proofreading


  2. #2
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I guess you could automatically do a window.reload(); onload of the previous page?

    Flawless
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---

  3. #3
    SitePoint Zealot boballoo's Avatar
    Join Date
    Dec 2001
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I thought of that but this form is on every page so I would have to add that to every "body" tag. I will if I have to because people think it didn't work so they immediately click again and again ...and... again. However I was hoping someone might have a site-wide solution but I am not sure how to go about that. Could it be done with .htaccess? as a redirect or something? (just guessing here)
    EditFast
    Any Document --> Any Time!
    Web Site Copy Editing & Proofreading



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
  •