how to do this
Posted: Sun Aug 16, 2009 8:24 pm
how can i get a php variable and almacen it into javascript variable, so i can get a session variable and use it for an if comparison in javascript
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
?>
<script type="text/javascript">
var value = "<?=addslashes($variable)?>";
// ...
</script>