Skip to main content
lovewebdev
Inspiring
September 23, 2006
Question

submit form once does not work

  • September 23, 2006
  • 1 reply
  • 179 views
I'm using this script to disable the submit button after it's clicked once:

onclick="this.disabled=true;this.value='Processing...';submit()"

But the form stop working whenever I use it. It submits and nothing happens. When i remove that code the login form then works properly... Any suggestions. Thanks!
This topic has been closed for replies.

1 reply

Inspiring
September 23, 2006
have you tried submiting the form before disabling the button?

lovewebdev wrote:
> I'm using this script to disable the submit button after it's clicked once:
>
> onclick="this.disabled=true;this.value='Processing...';submit()"
>
> But the form stop working whenever I use it. It submits and nothing happens.
> When i remove that code the login form then works properly... Any suggestions.
> Thanks!
>
lovewebdev
Inspiring
September 23, 2006
Yes, you mean:
onclick="submit();this.disabled=true;this.value='Processing...'"

I get the same problem. The form just submits to itself and does nothing.