Sorry to be so thick, but is it possible to pass php a variable to a javscript variable? If I retrieve some data from my db, I need to be able to maniplulate it with javascript. Mabye this is easy, but Im a novice so HELP!!!!!!!!!!
Tks Y'all
Something like this:
<? $php_var = "anything"; ?> <script> var js_var = <? echo $php_var; ?> </script>
Or you could skip the echo:
<? $php_var = "something"; ?>
<script> var java_var = <?=$php_var?> </script>