Re: submit
| From: | Noah Spitzer-Williams | Date: | Fri, 22 Dec 2000 00:58:55 +0000 |
| Subject: | Re: submit | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-31508@lists.php.net to get a copy of this message | ||
This is what i used, i did something like this:
<script language="javascript">
var clicked = 0;
function clickit() {
clicked = 1;
if (clicked == 0) return true;
if (clicked == 1) return false;
}
</script>
<form onsubmit="return clickit()">
- Noah
--
Founder of Survival of the Hottest:
http://www.survivalofthehottest.com
"Marcelo Gulin" <marcelo@gulin.com.ar> wrote in message
news:3A420E9F.E961C779@gulin.com.ar...
> Hi andre!
>
> maybe using some function in JavaScript to disable the submit button
> and calling that fuction in the OnSumit event of your form you can do
that.
>
> Hope it helps you!
> Marcelo Gulin
>
>
> andre escribió:
>
> > hi,
> >
> > weve got an orderform with the submit button
> >
> > now many users hit this button twice or three times
> > ( cause they are to unpatient to wait or server to replay )
> >
> > and so we recieve the same data up to three times
> >
> > anyone of you got a solution for this ?
> >
> > how to prevent them from klicking severall times ?
> >
> > ======
> >
> > we think of a small javascript which checks if the form
> > was submitted but whats with javasript off ?
> >
> > ======
> >
> > thank you
> >
> > andreas
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>