Re: submit button
| From: | Richard | Date: | Sat, 17 Mar 2001 18:07:23 +0000 |
| Subject: | Re: submit button | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-44405@lists.php.net to get a copy of this message | ||
You will have to use JavaScript.
Use the following:
document.poster.action.disabled=true; // Disable Submit & Preview
button
Or, if you aren't having it within a form, put the javascript in the end of
the page and write:
document.btnSend.disabled=true;
Note that the first code disables ALL "action" buttons...
- Richard
""george"" <chiefmonkey@wisemonkeydesign.co.uk> wrote in message
news:99029b$78h$1@toye.p.sourceforge.net...
> IS there a way of making sure that a submit button cant be pressed twice.I
> am using a form to send an email and dont want two emails showing up.
>
> TIA
>
> george
>
>
>
>
> --
> 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
>