in reply to Hitting submit twice

Many thanks for the suggestions.

I don't think disabling the submit button under the current setup would work, because many customers make basic errors (eg. forget to enter email address etc) and need to resubmit. This basic error checking is done my the same script before sending the order to the bank. Maybe I need to find another way to check errors so I can disable the submit button.

And only allowing one instance of the program to run - what about other customers ordering simultaneously?

Atm I am leaning towards the hidden variable and having the form dynamically created by the program.

Thanks.

Replies are listed 'Best First'.
Re^2: Hitting submit twice
by Anonymous Monk on Feb 02, 2015 at 08:29 UTC
    I don't think disabling the submit button under the current setup would work, because many customers make basic errors (eg. forget to enter email address etc) and need to resubmit. This basic error checking is done my the same script ...

    Disabling the submit button works entirely on the client side and has nothing to do with the server-side script - it really just prevents the submit button from being clicked twice in the browser. Also, re-enabling the submit button when necessary is just as easy as disabling it.

Re^2: Hitting submit twice
by Anonymous Monk on Feb 02, 2015 at 07:45 UTC
    Um, read all the articles, they each teach important basic techniques that complement each other and are your solution