How do I clear cache on a form following submission?

G

Guest

I've built a form in HTML, which submits data to a SQL database via an ASP
page. I want to clear the cache on the original HTML form so if the user
hits the "back" button, it will be a blank form.
Any help?
 
S

Steve Easton

It probably could be done using the javascript onblur event.

However the drawback to this is, if the user for some reason minimizes the page when they are half
done, to read an email or other page for example, the form will clear and they will have to start
all over.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
G

Guest

Steve,
Thanks, I've looked at inserting a Java script but discovered the same
problem you mentioned. The form is so long that users will go crazy if they
read an email while doing the form and go back to an empty form.

How about a timed redirect statement after the ASP form completes?

Ken
 
S

Steve Easton

Here's something you might try.

Make the same form the confirmation page.
Place a note by the Submit button stating: When you click Submit, this form will reappear with the
fields cleared. This means your data has been submitted and you may then close the page.

This "should" overwrite the cached file. But you'll have to test it to be sure.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top