Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 php,有没有办法通过一行确认消息重定向到现有的 html 页面。
我想收集用户信息,将其插入数据库,然后显示确认消息,以便用户知道记录
您可以使用header("Location: yourpage.html"); exit();
header("Location: yourpage.html"); exit();
它必须在任何输出之前使用,否则您将收到警告消息header already sent
header already sent