June 17th, 2000, 05:14 PM
I made page that redirects user to another page 2 seconds after loading, but I actually need it to go back two pages from history.
How should I modify this line:
<meta http-equiv="Refresh" content="2; URL=http://mysite.com/submit.html">
June 17th, 2000, 07:24 PM
<title>JS History test</title>
2. The browser history stores clicks and not necessarily pages, so you may run into trouble if you have anchor targets within the intermediate pages. If not, then it should go back two pages.
3. This sort of thing is nearly always a bad idea anyway. Just what are you trying to do? I have a hunch that your users will be confused and/or irritated. It is *they* who should be in control!
June 17th, 2000, 08:10 PM
Thanks for a code.
Purpose of script is to send user back to form page, after entering wrong password, and then requesting password to be sent by email
I'm sending them this way because data that they already filled in form will remain.
[This message has been edited by Pepe (edited June 17, 2000).]
June 18th, 2000, 05:52 AM
>>I'm sending them this way because data that they already
>>filled in form will remain.
I see your point. You should realize redirecting them back to the form page will make them to start filling the fields all over again.
Have you ever seen guestbook preview page? It basically carry the original form fields over to that preview page. As for your case, you can use hidden fields to carry the correctly filled fields over and require them to re-enter whatever missing fields or incorrect field (wrong password in your case).