PDA

View Full Version : header ("Location: .....


Lionel
09-24-2005, 05:18 PM
I have:
$loc = "http://www.site.com/forums/directory/search-1.php?location=$location&search=$string";

and I am trying to redirect to:

header ("Location: $loc");

the $location and $string return blank.

I can echo them, so they are there.

Are there any rules to parse variables into header(location ?

Adrian Schneider
09-24-2005, 05:58 PM
Does it work when you use: header("Location: " . $loc); ?

Lionel
09-24-2005, 06:07 PM
No it does not