我有这个未定义的偏移量,似乎无法找出原因。当它拒绝虚假表格时,它正在重定向它的位置。请帮忙。
这是播放下面三行的区域。
if ($_POST['FirstName'] == "" || $_POST['LastName'] == "" || $_POST['Email'==""] ||
$_POST['Phone'==""] || $_POST['Mobile'==""] || $_POST['Address'==""] ||
$_POST['City'==""] || $_POST['Town'==""] || $_POST['Country'==""] ){
$redirect= sprintf("order.php?error=true&name=%s", $_SESSION['order']['product']);
if (!$_COOKIE['PHPSESSID']) {
$redirect .= '&'.SID ;
}
header(sprintf("Location: %s", $redirect));
exit;
}