Jump to content

[SOLVED] Opera submit button exploits


MasterACE14

Recommended Posts

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

Link to comment
Share on other sites

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 ;D

 

~ Chocopi

Link to comment
Share on other sites

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.