如何完全重定向到另一个页面而不使用标题?我在联系表格中使用
$subject = "$name for $type";
$mailheader = "From: $email \r\n";
// Send email, if something goes wrong, kill programm and return error message
mail($recipient, $subject, $message, $mailheader) or die("<div class=\"alert alert-error\">Something went wrong, please try again.</div>");
// If all's well, return success page
//header("Location:http://www.test.com/success"); /* Redirect browser */
//exit();
但它不起作用,实际上浏览器只是在联系页面上但成功发送消息但没有重定向到http://www.test.com/success页面。请帮忙谢谢。