I am a new php programmer, and have a dumb question that is causing me to bang my head this morning.
I have a URL stored in a SESSION variable named "refer". I need to jump to that URL, but keep get syntax errors. Can anyone tell me the correct syntax to do this ... ???
does not work, yields the error "Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\choose-mod_beta1.php on line 26".PHP Code:
header( 'Location: $_SESSION['refer']' ) ;
I've tried several variations of the above call, but I think I'm missing something obvious.
What is the correct syntax to use the location call with a URL stored in a session variable?
Thanks in advance!