[thelist] Stopping multiple submits

Jason Handby jasonh at pavilion.co.uk
Mon Feb 3 05:49:04 CST 2003


> What is the best way to stop multiple form submits (i.e. the most
> accessible
> way)?
>
> Is Javascript the only solution?

You could build a server-side solution -- have a hidden field in your form
containing a server-side-generated random number value (or session ID, or
something), and check for it in the server-side script that your form
submits to. Only allow one submission to go through per unique ID. (Maybe
you can use a database transaction to help you enforce this.)



Jason




More information about the thelist mailing list