开发者

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

开发者 https://www.devze.com 2023-02-03 03:40 出处:网络
I have a simple POST script that I need to return to the page that was do开发者_如何学编程ing the Posting.

I have a simple POST script that I need to return to the page that was do开发者_如何学编程ing the Posting.

Is there any way to do it like this?

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


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

精彩评论

暂无评论...
验证码 换一张
取 消