Re: Tutorial?
| From: | Greg Donald | Date: | Sun, 03 Mar 2002 15:51:46 +0000 |
| Subject: | Re: Tutorial? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-17428@lists.php.net to get a copy of this message | ||
On Sat, 2 Mar 2002, Jennifer Downey wrote:
>Can anyone point me to a good tutorial on how to disable a submit button
>once clicked?
>preferably in php.
If you reload the page after the button is clicked then you can simply
pass a $disable variable in your form as a hidden field, then you can
check for the variable before drawing the button the second time.
Sounds more like a javascript thing to me though. PHP is a server side
scripting language, it's not designed to manipulate forms and buttons,
where javascript is.
--
-----------------------------------------------------------------------
Greg Donald - http://destiney.com/
http://phprated.com/ | http://phplinks.org/ | http://phptopsites.com/
-----------------------------------------------------------------------