how to redirect/dispatch in php? -


this question has answer here:

i working on login functionality. want is, on form submission "login.php" if details correct should go "home.php" else should go "login.php". login processing on "process.php". don't know how redirect/dispatch appropriate page "process.php"

use header function this:

header('location: login.php'); exit; 

but don't print html output before calling header function else result in error.


Comments

Popular posts from this blog

libGdx unable to find files in android application data directory -

php - Webix Data Loading from Laravel Link -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -