Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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
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 cooling their heels in the Monastery: (8)
As of 2014-11-26 04:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (162 votes), past polls