Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to clear data in a CFForm after submitting

Status
Not open for further replies.

MikeSawt

Technical User
Jun 24, 2003
25
US
I have set up a three page web application.
Page one has a cfform and fields to be completed by the user.
Page two displays the values for review by the user prior to submission.
Page three submits the data and prints a coupon.
The application is working correctly and submits the data to my sql table. My question is the following.
If the users clicks the back button, they can hit the submit again and the values will resubmitted and print a 2nd coupon. They could actually print as many coupon as they wanted from the same set of values.
Is there a way to clear the values after they have been submitted so that the back button does not save the values?

MikeSawt
 
I always try to control the process using validation. If that value set is already in the table, don't insert it. Rather redirect <cflocation> them to a document other than the print job.

Trying to control the client behavior is usually a loosing battle.

Lyndon

---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top