0

Hi,

I'm building a custom wordpress plugin that involves submitting data using a form. The form works quite well but it is susceptible to double submission. How can I prevent double form submission?

I used this. It disables the submit button but it prevents inserting of the values into the database table:

<form ... onsubmit="myButton.disabled = true; return true;">

How can I fix this?

Thanks in advance!

2
Contributors
2
Replies
8
Views
2 Years
Discussion Span
Last Post by admiralchip
0

Yeah, there was. I changed their names.

I started using this and it works just fine (It hides the submit button after clicking it.):

 <input type='submit'... onclick="this.style.visibility='hidden'/>

Thanks. :)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.