Re: JS and PHP
| From: | Teodor Cimpoesu | Date: | Wed, 27 Sep 2000 15:44:55 +0000 |
| Subject: | Re: JS and PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-17740@lists.php.net to get a copy of this message | ||
Hi Anna!
On Wed, 27 Sep 2000, Anna wrote:
> is there vay to pass variables from php to javascript function?
<script language='javascript'><!--
var foo="<?=$foo?>";
var arr=[ <?=implode (',',$my_array)?>,0 ]; //or smth.
//-->
</script>
so on.
[note: to FAQ editor. I think this is one of the freq. answered Qs]
-- teodor