Re: How to I convert the PHP variable back into Javascript?

From: Date: Fri, 13 Apr 2001 17:14:56 +0000
Subject: Re: How to I convert the PHP variable back into Javascript?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-48469@lists.php.net to get a copy of this message
SF> I have not been able to put the php variable back into javascript variable SF> for javascript scripting. I doubt if it would work if I assign the php SF> variable to the html variable then have the javascript pick it up. You don't have "HTML variables"... you have form's fields with a VALUE. Do something like: <INPUT TYPE=text NAME=firstname VALUE="<? print $firstname; ?>"> for all your fields. Cheers, Gianluca -- ALBASOFTWARE C/ Mallorca 186 - 3º 1ª 08036 Barcelona (Spain) Tel. +34 93454009 - +34 934549324 Fax. +34 934541979 @@ ICQ 47323154 @@ webmaster@albasoftware.com http://www.albasoftware.com http://www.phpauction.org http://www.gianlucabaldo.com

« previous php.general (#48469) next »