Good Day,
I am creating a webpage that users login called “index.html” which POSTs data to the “home.php” site when the user submits the form from “index.html.” Now that I am inside the “home.php” I can retrieve the posted variables, check them against the database and authenticate the user. Once I am in the “home.php” file, I would like the user to issue a GET request to the “home.php” site to display different data. Is there a way to do that and maintain the authentication?
Right now I am getting a notice saying that the POST variables are undefined. (Obviously, since I am not posting anything)
Notice: Undefined index: pass in C:\xampp\htdocs\home.php on line 7
Thanks,
Matt
It sounds like you want to use sessions.
See: http://www.w3schools.com/php/php_sessions.asp
See: http://www.tizag.com/phpT/phpsessions.php