-
Php problem
over 9 years ago
-
over 7 years ago
if($_POST['username'] == $username && $_POST['password'] == $password) header( 'Location: mainpage.php' ); ?>
-
-
over 7 years ago
if($_POST['username'] == $username && $_POST['password'] == $password) header( 'Location: mainpage.php' ); ?>
-
-
about 8 years ago
Hi.. php provide header() for redirection of pages . like
header("location:about_us.php");
about_us.php is the name of page where you want to redirect the user after successful login. Thanks
-
-
over 8 years ago
You can use header function for redirect like -
-
over 8 years ago
You can use header function for redirect like -
-
over 9 years ago
Yes, you can redirect user to any web page using header function
header('Location: http://www.example.com/'); exit;
Remember that header() must be called before any actual output is sent to browser, either by normal HTML tags, blank lines in a file.
Refrence: http://php.net/manual/en/function.header.php
-
-
over 9 years ago
Hi
Can you please explain your question more in detail so that I can tell you the exact solution.
Thanks
-
7 Answer(s)