Subject Re: [firebird-php] Duplicate numbers
Author Milan Babuskov
Jochem Maas wrote:
> ai, a submit handler - the first thing it does it disable to the submit button,
> then is submits the form.

I found that this doesn't work on some browsers (can't remember which one and
which version), so I add an additional boolean flag to check:

<input type=hidden name=clicked value=0>

<input type=submit value=Go onClick="return check();">

<script>
function check()
{
if (document.form.clicked.value == 1)
{
alert('You already clicked. Please wait.');
return false;
}
document.form.clicked.value = 1;
return true;
}
</script>


>>>Customers are called to a counter or room by ticket number - need I say
>>>more ;)
>
> well what happens if one runs out of rooms ;-)

Buy a bigger building ;)


--
Milan Babuskov
http://www.flamerobin.org