Re: JS and PHP
| From: | Michael T. Babcock | Date: | Wed, 27 Sep 2000 18:07:10 +0000 |
| Subject: | Re: JS and PHP | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-3124@lists.php.net to get a copy of this message | ||
> is there vay to pass variables from php to javascript function?
I get the feeling you didn't think about this too long ...
<script>
<?php printf ("var i = %d;", $value); ?>
or
var i = <?php echo $value ?>;