SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
-
Sep 13, 2002, 02:17 #1
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?
-
Sep 13, 2002, 02:32 #2
- 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 |=---
-
Sep 13, 2002, 03:07 #3
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)
Bookmarks