Cold Fusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingCold Fusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 1st, 2002, 11:22 PM
iyenstien iyenstien is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 1 iyenstien User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question cold fusion duplicating

How do you stop CF from duplicating a new data entry when you refresh?

Reply With Quote
  #2  
Old December 2nd, 2002, 08:35 AM
dgibson dgibson is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Urbana, MD, USA
Posts: 66 dgibson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 16
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.

Reply With Quote
  #3  
Old January 6th, 2003, 09:32 AM
ctredway ctredway is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Garland Tx
Posts: 39 ctredway User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 16
Send a message via ICQ to ctredway Send a message via AIM to ctredway Send a message via Yahoo to ctredway
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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingCold Fusion Development > cold fusion duplicating


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap