Okay everyone.. here is the code I am working with. <?php $url = “google.comâ€; if ($_GET[’OVKWID’]) { $url = “google.com†. $_GET[’OVKWID’]; } header("Location: http://www.".$url); ?> Code (markup): Now, go to http://www.dir111.com/greenteax It is suppose to go to www.google.com, but for some reason it tries to go to http://www.%93googlecom%94.com/ Any help, anybody?
I would get rid of the ticks and use normal quotes, I also made a minor change to your header line <?php $url = "google.com"; if ($_GET["OVKWID"]) { $url = "google.com" . $_GET["OVKWID"]; } header("Location: http://www.$url"); ?> PHP:
the code should be <?php $url = "google.com"; if ($_GET["OVKWID"]) { $url .= $_GET["OVKWID"]; } header("Location: http://www.".$url); exit; ?> Code (markup):