how to redirect/dispatch in php? -
this question has answer here:
- how make redirect in php? 24 answers
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
Post a Comment