7 Jun 2008 9:48 AM #1
How can I get the value $_SESSION["id"]
I need to use the value $_SESSION["id"] that is in the file "pepe.php", in the "var number" that is in "pepe.js". Sorry, I have a bad english level. Thanks.
7 Jun 2008 11:07 AM #2
You can do like this :
write this in pepe.php before including pepe.js :
Or rename pepe.js in whatever.php, include it with <?php include() ?> in pepe.php.
Then you could call php code with in your JS.
9 Jun 2008 8:11 AM #3
or you could make an ajax call back to a php page that would return that value.