I tried the new code and got the following error. Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /htdocs/www/ikaika/redirect.php on line 6 again the code used was: <?php require_once("application.php");?> <?php include("CWIncLoginForm.php");?> <?php if (isset($_SESSION["customerID"]) && $_SESSION["customerID"] != "0") { ?> <? if($HTTP_HOST=="www.napoleonp.org/ikaika/redirect.php" or $HTTP_HOST == "napoleonp.org/ikaika/redirect.php"){ header("Location: $row_rsCWGetCustomerData['cst_weburl']"); }?> sorry for all the problems. quote name='wildteen88' date='Apr 11 2006, 01:43 AM' post='363577'] Umm, you dont need to use echo when getting value from variable to be used in a funtion. The following should work: [code]header("Location: $row_rsCWGetCustomerData['cst_weburl']");[/code] [/quote]