Cless Posted June 30, 2007 Share Posted June 30, 2007 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();"/> Quote Link to comment https://forums.phpfreaks.com/topic/57838-solved-making-it-so-the-person-cannot-click-the-submit-button-twice/ Share on other sites More sharing options...
AndyB Posted June 30, 2007 Share Posted June 30, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/57838-solved-making-it-so-the-person-cannot-click-the-submit-button-twice/#findComment-286581 Share on other sites More sharing options...
Cless Posted June 30, 2007 Author Share Posted June 30, 2007 Yah, that's what I did. I think I might have found it. (Edited in first post). Quote Link to comment https://forums.phpfreaks.com/topic/57838-solved-making-it-so-the-person-cannot-click-the-submit-button-twice/#findComment-286582 Share on other sites More sharing options...
AndyB Posted June 30, 2007 Share Posted June 30, 2007 I think I found out how to... except it might be for PHP. No, that's javascript. Quote Link to comment https://forums.phpfreaks.com/topic/57838-solved-making-it-so-the-person-cannot-click-the-submit-button-twice/#findComment-286585 Share on other sites More sharing options...
Cless Posted June 30, 2007 Author Share Posted June 30, 2007 Oh. Quote Link to comment https://forums.phpfreaks.com/topic/57838-solved-making-it-so-the-person-cannot-click-the-submit-button-twice/#findComment-286586 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.