Click here to Skip to main content
15,914,943 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Advice and help required Pin
john3parker23-Nov-04 6:53
john3parker23-Nov-04 6:53 
GeneralRe: Advice and help required Pin
colin mcadam23-Nov-04 8:39
colin mcadam23-Nov-04 8:39 
GeneralRe: Advice and help required Pin
john3parker23-Nov-04 11:54
john3parker23-Nov-04 11:54 
GeneralRe: Advice and help required Pin
colin mcadam24-Nov-04 5:19
colin mcadam24-Nov-04 5:19 
GeneralRe: Advice and help required Pin
colin mcadam25-Nov-04 3:29
colin mcadam25-Nov-04 3:29 
GeneralCLR access policies Pin
fridtjof10-Nov-04 8:06
fridtjof10-Nov-04 8:06 
QuestionIf you are to design a shopping cart page that has a submit button, how do you prevent the user from clicking the submit button twice for the same transaction without using JavaScript? Pin
nicksun10-Nov-04 5:30
nicksun10-Nov-04 5:30 
AnswerRe: If you are to design a shopping cart page that has a submit button, how do you prevent the user from clicking the submit button twice for the same transaction without using JavaScript? Pin
Jack Puppy12-Nov-04 1:00
Jack Puppy12-Nov-04 1:00 
This is what I do to prevent duplicates on my site (non-cart oriented)

1) Create a field in the table that stores a unique id with each submitted item. Create a unique index on the field.
2) Generate a unique id (if you're using php, generate an md5 digest, and use the first 10 or so chars) when the form is displayed, and store its value in a hidden input field in the form
3) When the form is submitted, add the unique id to the table along with the rest of the data. If the user goes back and hits submit again or hits refresh, reinserting the unique id will bring up a duplicate key error, which you can interpret as "you've already submitted your data".



Cool | :cool: Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!
AnswerRe: If you are to design a shopping cart page that has a submit button, how do you prevent the user from clicking the submit button twice for the same transaction without using JavaScript? Pin
rgoyal13-Nov-04 0:53
rgoyal13-Nov-04 0:53 
Generalasp button Pin
cmarmr10-Nov-04 4:18
cmarmr10-Nov-04 4:18 
GeneralRe: asp button Pin
velkropie15-Nov-04 16:10
velkropie15-Nov-04 16:10 
GeneralMicrosoft Multimedia Control 6.0 Pin
andyleonhart9-Nov-04 21:18
andyleonhart9-Nov-04 21:18 
Generaljavascript problem Pin
samithas9-Nov-04 20:04
samithas9-Nov-04 20:04 
Questioncan more than one form be submitted at one time? Pin
nicksun9-Nov-04 16:38
nicksun9-Nov-04 16:38 
AnswerRe: can more than one form be submitted at one time? Pin
rgoyal9-Nov-04 20:53
rgoyal9-Nov-04 20:53 
AnswerRe: can more than one form be submitted at one time? Pin
rgoyal9-Nov-04 21:18
rgoyal9-Nov-04 21:18 
GeneralRe: can more than one form be submitted at one time? Pin
nicksun10-Nov-04 5:34
nicksun10-Nov-04 5:34 
GeneralRe: can more than one form be submitted at one time? Pin
Anonymous10-Nov-04 17:45
Anonymous10-Nov-04 17:45 
QuestionStrong name assembly in html page? Pin
fridtjof9-Nov-04 9:42
fridtjof9-Nov-04 9:42 
AnswerAdditional information for the problem Pin
fridtjof9-Nov-04 21:42
fridtjof9-Nov-04 21:42 
Generalasp sessions Pin
mm668-Nov-04 9:42
mm668-Nov-04 9:42 
GeneralRe: asp sessions Pin
hakanaktan8-Nov-04 14:52
hakanaktan8-Nov-04 14:52 
Generalsecure web pages and images Pin
seevse8-Nov-04 8:23
seevse8-Nov-04 8:23 
GeneralRe: secure web pages and images Pin
JKroschel2-Dec-04 11:33
JKroschel2-Dec-04 11:33 
GeneralChanging References quickly Pin
sharkbait8-Nov-04 3:58
sharkbait8-Nov-04 3:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.