Trying you use an updateGoto command but getting error
Posted: Mon Feb 03, 2003 1:36 am
I am using Dreamweaver which has an updateGoto command. DOn't mean to be vague, but I am barely understanding the error to ask athe question.
Thanks for any help or direction.
I am getting the following error:
Warning: Cannot add header information - headers already sent by (output started at /home/mysite/www/modify.php:2) in /home/mysite/www/modify.php on line 66
Here is part of the code:
$updateGoTo = "/player.php?" . $row_Recordset1['login'] . "=";
if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {
$updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
$updateGoTo .= $HTTP_SERVER_VARS['QUERY_STRING'];
}
header(sprintf("Location: %s", $updateGoTo));
}
Thanks for any help or direction.
I am getting the following error:
Warning: Cannot add header information - headers already sent by (output started at /home/mysite/www/modify.php:2) in /home/mysite/www/modify.php on line 66
Here is part of the code:
$updateGoTo = "/player.php?" . $row_Recordset1['login'] . "=";
if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {
$updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
$updateGoTo .= $HTTP_SERVER_VARS['QUERY_STRING'];
}
header(sprintf("Location: %s", $updateGoTo));
}