Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 lurking in the Monastery: (10)
As of 2015-07-02 22:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (46 votes), past polls