MasterACE14 Posted October 27, 2007 Share Posted October 27, 2007 Evening Everyone, It has come to my attention that people that use the opera web browser are able to click a submit button once, and then press enter again and again without letting the page completely load. They need to press enter around every 0, 4 seconds. And then when they let the page completely load, whatever MySQL queries you may have that run when a submit button is pressed. They are run as many times as the person has pressed enter during the page loading. This is quite a dangerous and crafty exploit. And I simply want to know, how can I stop this from happening? can this be stopped with PHP? or do I need javascript? surely their is a way to make it so, once a submit button is pressed, the button is now dead. Until the page has fully loaded. Regards ACE Quote Link to comment https://forums.phpfreaks.com/topic/74984-solved-opera-submit-button-exploits/ Share on other sites More sharing options...
MasterACE14 Posted October 27, 2007 Author Share Posted October 27, 2007 bump, surely someone has found a way to destroy this exploit? Quote Link to comment https://forums.phpfreaks.com/topic/74984-solved-opera-submit-button-exploits/#findComment-379208 Share on other sites More sharing options...
chocopi Posted October 27, 2007 Share Posted October 27, 2007 Just google it Google Search <html> <head> <script language="JavaScript"> function Disab (val) { if(val=="1") {form1.Submit.disabled=true} if(val=="2") {form1.Button.disabled=true} } </script> </head> <body> <form name="form1" method="post" action="" enctype="text/plain"> <input type="submit" name="Submit" value="Submit" onClick="Disab (1)"> <input type="button" name="Button" value="Button" onClick="Disab (2)"> </form> </body> </html> That is a form with 2 buttons one will disable when clicked and load the form while the other will just disable itself. I hope thats what you were looking for ~ Chocopi Quote Link to comment https://forums.phpfreaks.com/topic/74984-solved-opera-submit-button-exploits/#findComment-379210 Share on other sites More sharing options...
MasterACE14 Posted October 27, 2007 Author Share Posted October 27, 2007 perfect , thanks chocopi Quote Link to comment https://forums.phpfreaks.com/topic/74984-solved-opera-submit-button-exploits/#findComment-379262 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.