开发者

open one php page from other [closed]

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜