|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Getting $_SESSION['var'] into javascript
I am trying to get SESSION variables set by a PHP script into a javascript.
I found the following: [javascript] var acct_name='<?=$_SESSION['acct_name']?>'; [/javascript] When I place that into my javascript, it stops working. Any ideas/solutions welcomed. |
|
#2
|
|||
|
|||
|
RE: Getting $_SESSION['var'] into javascript
I'm not too sure, but try putting a semi-colon at the end of the line like this:
var acct_name='<?php $_SESSION['acct_name']; ?>'; |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Getting $_SESSION['var'] into javascript |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|