I have a page that asks the user for a username and password. This is then checked against a mysql database.
If the username and password are verified then you are redirected to a page.(lets call it page1.php)
If the username and password are not verified then you are redirected to another page.(lets call it page2.php)
My question is, how do I stop the user from going directly to page1.php and bypassing the username/password page.(i.e. the only way for a user to use page1.php is to go through the username/password page)
If the username and password are verified then you are redirected to a page.(lets call it page1.php)
If the username and password are not verified then you are redirected to another page.(lets call it page2.php)
My question is, how do I stop the user from going directly to page1.php and bypassing the username/password page.(i.e. the only way for a user to use page1.php is to go through the username/password page)