2013-07-06 48 views
-2

如何到完全重定向到另一頁不使用標題?我接觸的形式如何完全重定向到另一個頁面?

$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頁。請幫助謝謝你。

回答

0

可以使用JavaScript

<script> 
    location = 'http://www.test.com/success'; 
</script> 
+0

作品重定向。謝謝@Manoj – userkick

相關問題