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 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> 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 Link to comment https://forums.phpfreaks.com/topic/56053-solved-sessions/#findComment-276830 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.