PDA

Click to See Complete Forum and Search --> : Put a var in Header command?


Jmacp
Jul 17th, 2008, 09:36 AM
If you have a url string say $url how do you put this in a header command...?


something like,

header("location: $url");

I wasn't sure if $url with work as it is inside quotes?

penagate
Jul 17th, 2008, 10:03 AM
That will work if you use double quotes. Single-quoted string literals aren't parsed for variables.