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

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

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