changing from meta redirect to php location

ok I need help I tried to edit the second part, but i cant get my dreamweaver to stop complaining about the part i editd.

I only editd part so i could figure out how to set it back easily if needed lol

here is the code [php]<?php
if ($_SERVER[‘HTTPS’] == “on”) {
if(isset($_GET[‘ref’])){ echo “<meta http-equiv=‘refresh’ content='1;url=https://secure.web-hosting-service.org/shared-web-hosting.php?ref=”.$_GET[‘ref’]."&hl=$selectedlang’>"; } else {
echo “”; }
} else {
if(isset($_GET[‘ref’])){ Location: (“http://www.web-hosting-service.org/shared-web-hosting.php?ref=".$_GET[‘ref’]."&hl=$selectedlang’>”); } else {
Location: (“http://www.web-hosting-service.org/shared-web-hosting.php?hl=”.$selectedlang.); } }
?>[/php]

if i could just get explained what im doing wrong, that’d be great!, thanks.

maybe you meant

[php]<?php
if ($_SERVER[‘HTTPS’] == “on”) {
if(isset($_GET[‘ref’])){
echo “<meta http-equiv=‘refresh’ content='1;url=https://secure.web-hosting-service.org/shared-web-hosting.php?ref=”.$_GET[‘ref’]."&hl=$selectedlang’>";
}
else {
echo “”;
}
}
else {
if(isset($_GET[‘ref’])){
header(“Location: http://www.web-hosting-service.org/shared-web-hosting.php?ref=".$_GET[‘ref’]."&hl=$selectedlang’>”);
}
else {
header(“Location: http://www.web-hosting-service.org/shared-web-hosting.php?hl=”.$selectedlang);
}
}
?>[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service