oceans Posted May 13, 2007 Share Posted May 13, 2007 Dear Friends, I am using a normal submit button, Situation: Once submit is pushed, the computer works. But the user can push the submit again; please advice on how could I “disable” this button once pushed once. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/51137-solved-disable-submit-button/ Share on other sites More sharing options...
mmarif4u Posted May 13, 2007 Share Posted May 13, 2007 Use javascript, google it u will find good tutorials on it. Quote Link to comment https://forums.phpfreaks.com/topic/51137-solved-disable-submit-button/#findComment-251757 Share on other sites More sharing options...
ToonMariner Posted May 13, 2007 Share Posted May 13, 2007 You shouldn't have to. Once submit is hit he browser starts buikding the headers, another hit should either make th browser ignore the previous request or build a new... So the second hit should not make a rat's backside difference Quote Link to comment https://forums.phpfreaks.com/topic/51137-solved-disable-submit-button/#findComment-251762 Share on other sites More sharing options...
pocobueno1388 Posted May 13, 2007 Share Posted May 13, 2007 You shouldn't have to. Once submit is hit he browser starts buikding the headers, another hit should either make th browser ignore the previous request or build a new... So the second hit should not make a rat's backside difference I have experienced on other sites that it is possible for the submit button to work more than once if pressed multiple times, so I would definitely suggest using JavaScript if you are having issues with it. Quote Link to comment https://forums.phpfreaks.com/topic/51137-solved-disable-submit-button/#findComment-251766 Share on other sites More sharing options...
oceans Posted May 13, 2007 Author Share Posted May 13, 2007 I was browsing the web for a while now, but could not find a suitable snnipet, can anyone recomand, thanks. Quote Link to comment https://forums.phpfreaks.com/topic/51137-solved-disable-submit-button/#findComment-251828 Share on other sites More sharing options...
maliary Posted May 13, 2007 Share Posted May 13, 2007 Try the dynamic drive site. Quote Link to comment https://forums.phpfreaks.com/topic/51137-solved-disable-submit-button/#findComment-251893 Share on other sites More sharing options...
oceans Posted May 13, 2007 Author Share Posted May 13, 2007 Sorry I could not catch you Quote Link to comment https://forums.phpfreaks.com/topic/51137-solved-disable-submit-button/#findComment-251894 Share on other sites More sharing options...
paul2463 Posted May 13, 2007 Share Posted May 13, 2007 <input type="submit" onclick="this.disabled=true;"> Quote Link to comment https://forums.phpfreaks.com/topic/51137-solved-disable-submit-button/#findComment-251991 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.