lingstar
asked on
Redir not going to proper site
Good morning,
I have the following on
http://www.barbaraling.com/rediresp.php
<?
if(!$ca){
$ca=1;
} else{
$num = array(
1 => "http://www.auctionupperhand.com/",
2 => "http://www.auctionupperhand.com/recruiting/index.html"
);
}
Header( "Location: $num[$ca]");
?>
I would assume that if $ca is not defined, it would
default to the first option (ie, auctionupperhand).
But it goes to the site on which its hosted
(barbaraling.com). Might someone point out
where I've been clueless?
Thank you in advance,
Barbara Ling
I have the following on
http://www.barbaraling.com/rediresp.php
<?
if(!$ca){
$ca=1;
} else{
$num = array(
1 => "http://www.auctionupperhand.com/",
2 => "http://www.auctionupperhand.com/recruiting/index.html"
);
}
Header( "Location: $num[$ca]");
?>
I would assume that if $ca is not defined, it would
default to the first option (ie, auctionupperhand).
But it goes to the site on which its hosted
(barbaraling.com). Might someone point out
where I've been clueless?
Thank you in advance,
Barbara Ling
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I greatly appreciate your insights, they
were most helpful.
Best wishes,
Barbara Ling