After a form is submitted, I want to keep the user from using the [browser back 
/javascript history back] function to access the form with the fields populated 
to avoid a second submission. User must complete the form from scratch each 
time it is submitted. 


This is fairly problematic, depending on how much control you have over the 
users' browsers and its settings.

The best method I've heard of is to provide an unique ID value to each form 
presented in a hidden field, and then only allow one submission per form ID 
value.


Something along these basic lines:

<form....>

<input type="hidden" name="formUniqueKey" value="#generatedUniqueValue#">


Action Page
If form.formUniqueKey has already been submitted.
        You have already submitted this data, please refresh your form and 
submit again.
Else
        Process form once and only once.



--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

---------
| 1 |   |
---------  Binary Soduko
|   |   |
---------
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241525
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to