Fw: PHP question - THANK YOU

From: Date: Wed, 28 Apr 2004 10:42:14 +0000
Subject: Fw: PHP question - THANK YOU
Groups: php.general 
Request: Send a blank email to php-general+get-184856@lists.php.net to get a copy of this message
Hi all To all that tried to help me on monday with my disabling the button exercise. A big thank you, I really apprecitated it. I finally gave up and decided to email the guys as to which site I saw this on I felt that, I should pass this on, incase there is anyone too that is interested, in how this works. Kind Regards Brent Clark Curtisy of Arbi Arzoumani (Thanks once again) ------------------------------------------------------------------- <?php $btn = (isset($_POST['test']) ? $_POST['test'] : ''); if ($btn!='') { echo "Hello World<BR>"; } $sSelf = $_SERVER['PHP_SELF']; ?> <form name="frm" action="<?=$sSelf?>" method="POST"> <input type="Hidden" name="test" value="MyValue"> <input type="Button" name="btn" value="Button" onclick="boff();"> </form> <script language="javascript"> function boff() { document.frm.btn.disabled=true; document.frm.submit(); } </script> -------------------------------------------------------------------

« previous php.general (#184856) next »