I have this code :
<?
if(isset($_POST['wallib']) {
$insert=mysql_query("INSERT INTO wall (message) VALUES ('".mysql_real_escape_string($_POST['wallib'])."')",$mydb);
}
?>
<form action='index.php?explore=home' method='post' name='wallHome'>
<input id="wallib" name="wallib" type="text" class="inputWall1" />
<a href="javascript:document.wallHome.submit();">Send</a>
</form>
If i press quickly on Send (without waiting for the response, just quickly) I see that the message is inserted only 1 time on the Database.
But, if I add (for example) the function sleep(2);
in the php script and I still click quickly on Send, it adds on the database the string for each click.
So I'm not so quickly in the fist case? Yeah, a stupid question... just curious... :)