Hi
I am curious as to why when I post to php backend, it sends the data several times. I have done a screen grab to show the problem and would appreciate some help as to where I am going wrong. Many thanks.
You define the AJAX call each time the validation runs. I.e. if the validation runs four times, you define four separate click handlers and when the click triggers, four handlers are called and hence four requests are made.
I would have actually suggested a couple of different options:
1: Move the bind into the document.ready function above.
2: Abort validate() if the button is already enabled. This actually is probably the better solution, because validate() should have an else to that if that disables the button and hides it again.
m_hutley I have tried various options based on your post but keep getting the same result. Would it be possible you can give me an example in code that I can follow. Many thanks