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

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -