Possible Duplicate:
Passing PHP variable into JavaScript
I want to obtain a PHP variable, to use it in an if-condition in JavaScript.
I was trying to use it like this:
var phpLogin = <?php $_SESSION['login'] ?>;
But it's wrong in syntax terms. So, how can I use a PHP variable in JavaScript?
 
     
     
     
     
     
    