spooke2k Posted June 18, 2007 Share Posted June 18, 2007 need to read a php session value into a javascript function does anyone know how to do this. Spooke2k Quote Link to comment https://forums.phpfreaks.com/topic/56053-solved-sessions/ Share on other sites More sharing options...
ToonMariner Posted June 18, 2007 Share Posted June 18, 2007 <script type="text/javascript"> var urvar = <?php echo $_SESSION['somevar']; ?>; // rest of js </script> Quote Link to comment https://forums.phpfreaks.com/topic/56053-solved-sessions/#findComment-276827 Share on other sites More sharing options...
spooke2k Posted June 18, 2007 Author Share Posted June 18, 2007 thank you so much you have been a massive massive help Spooke2k Quote Link to comment https://forums.phpfreaks.com/topic/56053-solved-sessions/#findComment-276830 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.