[PHP-DEV] [PHP3] how to set PHP variable with Javascript ? From: gberaj Roslee Bin Abdul Jalil (gberaj <email protected>)
Date: 11/23/99

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 <email protected>
To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin <email protected>

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>