need help with session variables
Question:
I have edited the below phrase repeatidly and cannot get it to work. What do I have wrong here?
Answers:
what is the error that you are getting? a compilation error or a problem with the session variable?
BTW, the '{' is misplaced in the code.
I have edited the below phrase repeatidly and cannot get it to work. What do I have wrong here?
| Code: |
| if( isset($_SESSION['current_page']))
{ //print( "email_call_page contains $_SESSION['current_page'] <br>" ); print( "if is true <br>" ); { else print( "session variable current_page is not set <br>" ); |
Answers:
what is the error that you are getting? a compilation error or a problem with the session variable?
BTW, the '{' is misplaced in the code.
| Code: |
|
if( isset($_SESSION['current_page'])) { //print( "email_call_page contains $_SESSION['current_page'] <br>" ); print( "if is true <br>" ); }//<-- corrected else { print( "session variable current_page is not set <br>" ); } |
Commentaires
Enregistrer un commentaire