Click to See Complete Forum and Search --> : Sending Variables to Javascript


tgrk35
12-12-2005, 06:19 PM
Is there a way to send PHP variables and their values to a Javascript...script?

Will :)

ShrineDesigns
12-12-2005, 09:07 PM
just echo them them out inside of a script tag, example<script type="text/javascript">
<!--
var php_var = "<?php echo $var; ?>";
//-->
</script>