Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: How to avoid mulitple submission of form in html

by Anonymous Monk
on Sep 10, 2011 at 05:01 UTC ( #925198=note: print w/ replies, xml ) Need Help??


in reply to How to avoid mulitple submission of form in html

If you do know the user-name, then you just need a "user-likes" table where "user-ID" and "topic-ID" are the primary key. Attempt to insert a row. If a matching row already exists, the insert will fail ... and you simply ignore it.


Comment on Re: How to avoid mulitple submission of form in html
Replies are listed 'Best First'.
Re^2: How to avoid mulitple submission of form in html
by Anonymous Monk on Sep 10, 2011 at 05:53 UTC
    Or generate a form-session-id, and when someone tries to submit the same form again, when you encounter an existing form-session-id, refuse to insert into database

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://925198]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2015-08-28 03:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (334 votes), past polls