Jump to content

[SOLVED] Making it so the person cannot click the submit button twice


Recommended Posts

Hello,

 

I have seen something on many sites: they make it so you can't click the submit button twice. Such as, when you click the Register button while registering. Does anyone know how to do this?

 

Thanks.

 

I think I found out how to... except it might be for PHP.

 

<input type="submit" value="Log In!" class="BasicInput" onclick="this.disabled = 'true'; this.value = 'Logging In...'; this.form.submit();"/>

That's far too generic a question.  Find a site that does what you want and look at the code (view source).  Try something on your own based on what you learn, then post back and explain what's giving you a specific problem.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.