开发者

open one php page from other [closed]

开发者 https://www.devze.com 2022-12-20 09:28 出处:网络
Closed. This question needs details or clarity. It is not currently accepting answers. 开发者_开发百科
Closed. This question needs details or clarity. It is not currently accepting answers.
开发者_开发百科

Want to improve this question? Add details and clarify the problem by editing this post.

Closed 8 years ago.

Improve this question

i am trying to develop a website and i want that after entering correct username and password desired page should open. how i can achieve this.


if(...)
{
    // code to verify login...
    header("Location: http://page_to_forward_to/");
}
else { ... }

Hope this is what you are looking for


$url = "my/url/here";
Header("Location: $url");
exit();


you can use the header function:

 header("location: www.example.com/yourpage.php");

Other possibility is to use javascript:

<script>
  window.location = 'yourpage.php';
</script>
0

精彩评论

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