Zeeshan Rang
Zeeshan Rang

Reputation: 19875

open a new html page through php

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

Upvotes: 2

Views: 27013

Answers (3)

Insane Skull
Insane Skull

Reputation: 9358

Try Using Anchor Tag:

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

Upvotes: 0

Strae
Strae

Reputation: 19445

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.

Upvotes: 3

Keith Maurino
Keith Maurino

Reputation: 3432

Try using the header function.

header("Location: $url");

Upvotes: 11

Related Questions