📌  相关文章
📜  提交后如何在php中重定向到另一个页面 - PHP代码示例

📅  最后修改于: 2022-03-11 14:54:53.704000             🧑  作者: Mango

代码示例1
Right after @mail($email_to, $email_subject, $email_message, $headers);

header('Location: nextpage.php');

Note that you will never see 'Thanks for subscribing to our mailing list'

That should be on the next page, if you echo any text you will get an error because the headers would have been already created, if you want to redirect never return any text, not even a space!