Re: variable on 2 forms

From: Date: Wed, 14 Mar 2001 14:57:41 +0000
Subject: Re: variable on 2 forms
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-43847@lists.php.net to get a copy of this message
I think you'll need to use javascript. put a input with the type "hidden" in the first form with no value. Call a javascript function on the submit button or image action. This javascript must set the hidden input in form1 with the var2 value before submiting the form to the script. the object structure for the forms in javascript is : document.forms[].elements[].value Good luck. Pablo pablo@e-nov.com ----- Original Message ----- From: Miguel Loureiro <m.loureiro@distrim2.pt> To: php-gen <php-general@lists.php.net> Sent: Wednesday, March 14, 2001 3:58 PM Subject: [PHP] variable on 2 forms Hello all, I have a normal form (form1) with a variable (var1) and a form inside a layer (form2) with a variable (var2). After submit (form1), how can I have access to var2 ? (if I must use javascript should use: document.layer.var2 or document.form2.var2 or document.layer.form2.var2 .......???).I try to read directly $var2, but without result.... T.Y all Best Regards Miguel Loureiro <m.loureiro@distrim2.pt >

« previous php.general (#43847) next »