Mauricio Pellegrini wrote:
Hi , I wonder if it's possible to retrieve the value from a php session
variable from within a javascript function.

Does anyone have any ideas about this?

No. You cannot retrieve it, restore it, read it, send it, anything else.

You can write it from PHP :

echo '<script type="text/javascript">var sess = '.$_SESSION['somevar'].'</script>';

But that's it.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to