Forum Moderators: coopster
Probably a really simple question/answer:
I'd like to redirect to a URL that is stored in a variable named $newurl, but I'm having problems doing so:
<?php
$newurl = "http://www.mydomain.tld/"; header('Location: $newurl');
?>
Anyone?
header('Location: '.$newurl); // variable concatenationheader("Location: $newurl"); // variables are parsed inside double quotes