|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
How do you stop CF from duplicating a new data entry when you refresh?
|
|
#2
|
|||
|
|||
|
There are several ways of doing this, but in simple self-submitting pages, I tend to CFLOCATION to the resulting display/page. Then when you reload, you'll just reload without resending form data.
To entirely prevent resubmission of form data for a user who goes back through their history, you will have to implement something more complication such as saving a session-based serial-list that represents all forms/serial numbers that have been submitted ths far and prevent resubmission of those forms. |
|
#3
|
|||
|
|||
|
This entirely depends on what your application is doing. If they are registering or creating a profile, then when the form is submitted the first time and it is successful, set a session variable to say that they have completed this process. Then as long as that session variable is there, they cannot register again with the same info.
Also, I am assuming that before you insert anything, you are checking the current data in the database with the data being submitted so that there is not duplicate data being entered. Clint
__________________
Clint Tredway Need a website? Need development help? www.fishermenstudios.com ctredway@fishermenstudios.com |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Cold Fusion Development > cold fusion duplicating |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|