Posted by Jerry Stuckle on 04/13/06 15:35
fletch wrote:
> Here's how I disable a button on submit
>
> <input type="submit" onclick="PleaseWait(this)" />
>
> the javascript is
>
> function PleaseWait(button)
> {
> button.value='PLEASE WAIT';
> button.style.color='red';
> button.onclick= function() {
> alert('Please Wait');
> return false;
> }
> return true;
> }
>
> We also do server side checking for duplicate form posts on all forms
> received.
>
You can't unless you send the page back to the client. Javascript is
client-side, while PHP is server-side.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|