How do I navigate to another page in PHP? Via require or fopen?
if ($ row_login ['password']! = $ _POST ['password'])
echo 'Invalid password';
else {
require ('page.php')
}
Answer 1
Answer 2, authority 92%
There is such a function header .
header ()
is used to send rawHTTP
headers. See theHTTP / 1.1
specification for information onHTTP headers
.
Answer 3, authority 90%
I usually use
header ("Location: http://www.example.com/");
Answer 4, authority 99%
header ('Location: _URL_'); exit;
echo '& lt; script & gt; location.replace ("_ URL _"); & lt; / script & gt;'; exit;