after I insert my data into MYSQL I need to redirect to a page that will display the informatio for review and possible updates after validation. But the header() fuction is returning an error:
"Warning: Cannot modify header information - headers already sent by (output started at c:\inetpub\ in c:\inetpub\ on line 61"
<?PHP
$insertGoTo = "confirmation2.php";
if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $HTTP_SERVER_VARS['QUERY_STRING'];
}
echo $insertGoTo;
header(sprintf("Location: %s", $insertGoTo));//this is Line 61
}
?>
AL Almeida
NT/DB Admin
"May all those that come behind us, find us faithfull"
"Warning: Cannot modify header information - headers already sent by (output started at c:\inetpub\ in c:\inetpub\ on line 61"
<?PHP
$insertGoTo = "confirmation2.php";
if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $HTTP_SERVER_VARS['QUERY_STRING'];
}
echo $insertGoTo;
header(sprintf("Location: %s", $insertGoTo));//this is Line 61
}
?>
AL Almeida
NT/DB Admin
"May all those that come behind us, find us faithfull"