[英]PHP - Redirect to a page with confirmation message
Using php, is there a way to redirect to an existing html page with a one line confirmation message. 使用php,有一种方法可以通过单行确认消息重定向到现有的html页面。
I want to collect user info, insert it into a database, and then show a confirmation message so the user knows the record 我想收集用户信息,将其插入数据库中,然后显示一条确认消息,以便用户知道记录
you can use header("Location: yourpage.html"); exit();
您可以使用
header("Location: yourpage.html"); exit();
header("Location: yourpage.html"); exit();
It must be used before any output, or you will get a warning message header already sent
必须在任何输出之前使用它,否则您将获得一个
header already sent
的警告消息header already sent
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.