通过php打开一个新的html页面

I want my php to open a new html page.

I have a html page, where a member can login by typing her username and password and then click on button.

if the username password is correct, i want my php to open a different html page in the same window.

how can i do this??

Zeeshan

Or, the 'techless' solution:

<html>
<head>
    <title>Redirecting...</title>
    <meta http-equiv="refresh" content="0;URL=newpage.php">
</head>
<body>
    You are being automatically redirected to a new location.<br />
    If your browser does not redirect you in few seconds, or you do
    not wish to wait, <a href="newpage.php">click here</a>. 
</body>
</html>

See Here.

Try using the header function.

header("Location: $url");

Try Using Anchor Tag:

<a href="#" >Link name</a>