Forums

This topic is locked

Expire Page

Posted 28 Jan 2003 21:20:52
1
has voted
28 Jan 2003 21:20:52 michael Betts posted:
I have a form which submits automatically when the page loads and then redirects to the next page. If the user clicks the back button, the form submits again, adding another record to the database. Is there a way to make the form page "expire" and therefore prevent it from submitting a second time.

Would appreciate any help!
M

Replies

Replied 30 Jan 2003 02:17:44
30 Jan 2003 02:17:44 Chris Somes replied:
I've seen ways to do this by via javascript - it basically freezes the submit button once a form has been submitted to prevent further clicks. Don't know the code directly, but do a simple websearch with google or similar for 'javascript form button once' or somethin glike that and you should easily find the right code to add to your pages...
Replied 30 Jan 2003 03:01:51
30 Jan 2003 03:01:51 asp asp replied:
try this bellow the <%@ Language=VBScript %>
-----------------------------------

<%Response.CacheControl="no-store"%>

Reply to this topic