Page 1 of 1

forwarding a user

Posted: Wed Jul 30, 2003 5:49 pm
by Whil
How do i have it so if a user's name is not found in a database it forwards them to another page?... I know how to check the database... i just need to know how to forward.


-Thanks

Posted: Wed Jul 30, 2003 7:53 pm
by m3mn0n
Make sure there is no HTML headers on the page, then:

Code: Select all

<?php
// in the middle of the error section
header ("Location error.php");
?>

Posted: Wed Jul 30, 2003 8:25 pm
by Whil
Thanks :)