简体   繁体   中英

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.

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();

It must be used before any output, or you will get a warning message header already sent

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM