[PHP3] how to set PHP variable with Javascript ?

From: Date: Tue, 23 Nov 1999 06:10:55 +0000
Subject: [PHP3] how to set PHP variable with Javascript ?
Groups: php.dev 
Request: Send a blank email to php-dev+get-12959@lists.php.net to get a copy of this message
Please advise if the following is correct: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx <script language = "javascript"> function gettext(this) { this.value = <? $php_var ?> ;// is this the correct way??? document.form.nonque.value = <? echo $php_var ?>; } </script> <form name=form > <input type = text name = "unique" onChange = "gettext(this)"> <input type = text name = "nonque" > </form> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx thank you...!!!!!!!! -- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe@lists.php.net To subscribe to the digest, e-mail: php3-digest-subscribe@lists.php.net To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.dev (#12959) next »