Open a new html page through php

I want my php to open a new html page.

I have an html page where a member can enter by typing her username and password, and then click the button.

If the user password is correct, I want my php to open another html page in the same window.

How can i do this?

Zishan

+3
source share
3 answers

Or, a β€œtechnical” 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.

+4
source

Try using the header function.

header("Location: $url");
+11
source

Try using the anchor tag:

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

Source: https://habr.com/ru/post/1712573/


All Articles