dynamic header
Posted: Wed Oct 15, 2003 6:22 am
im creating a session variable
$HTTP_SESSION_VARS['page_name'] = "feedback"; in index.php
the user clicks Login and is directed to a page with a header
header(" Location: index.php");
however i want the user to go back to the file they logged in from
so the filename , which is now index needs to take on the value
of $HTTP_SESSION_VARS['page_name']
i tried this at a guess
header(" Location: " + $HTTP_SESSION_VARS['page_name'] + ".php");
and the error message was this
The server encountered an internal error or misconfiguration and was unable to complete your request
didnt think it would work but thought id try it
can anyone give me an idea please? thanks
$HTTP_SESSION_VARS['page_name'] = "feedback"; in index.php
the user clicks Login and is directed to a page with a header
header(" Location: index.php");
however i want the user to go back to the file they logged in from
so the filename , which is now index needs to take on the value
of $HTTP_SESSION_VARS['page_name']
i tried this at a guess
header(" Location: " + $HTTP_SESSION_VARS['page_name'] + ".php");
and the error message was this
The server encountered an internal error or misconfiguration and was unable to complete your request
didnt think it would work but thought id try it
can anyone give me an idea please? thanks