If you have a url string say $url how do you put this in a header command...?
something like,
I wasn't sure if $url with work as it is inside quotes?Code:header("location: $url");
Printable View
If you have a url string say $url how do you put this in a header command...?
something like,
I wasn't sure if $url with work as it is inside quotes?Code:header("location: $url");
That will work if you use double quotes. Single-quoted string literals aren't parsed for variables.