How do I navigate to another page when PHP script is done?

匿名 (未验证) 提交于 2019-12-03 08:35:02

问题:

Okey dokaey, I have a simple post script, and when it's done I just want to go back to the page that was doing the posting.

Any way to do it like this?

if($done)     {         //go to page     }

回答1:

if ($done) {     header("Location: /url/to/the/other/page");     exit; }


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!