Hi!
I need the best way to solve a problem, I'm a newbie.
I have "login.php" , a login script. That page first displays a login
form with itself as target of a post-request to validate data when
user presses the login-button (I can't change that setup).
If the login is not correct I want to display the login form again and
show an additional line displaying the error, that is easy and already
working.
But if the login was correct I want to display another page to the
user that is constructed in "main.php".
Now what is the best way (easiest and most compatible) when I'm in
"login.php" to switch to the next page "main.php"?
Thank you very much for your answers!
I need the best way to solve a problem, I'm a newbie.
I have "login.php" , a login script. That page first displays a login
form with itself as target of a post-request to validate data when
user presses the login-button (I can't change that setup).
If the login is not correct I want to display the login form again and
show an additional line displaying the error, that is easy and already
working.
But if the login was correct I want to display another page to the
user that is constructed in "main.php".
Now what is the best way (easiest and most compatible) when I'm in
"login.php" to switch to the next page "main.php"?
Thank you very much for your answers!
Comment