forwarding a user

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
Whil
Forum Newbie
Posts: 8
Joined: Wed Jul 30, 2003 8:50 am
Location: USA

forwarding a user

Post 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
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post 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");
?>
Whil
Forum Newbie
Posts: 8
Joined: Wed Jul 30, 2003 8:50 am
Location: USA

Post by Whil »

Thanks :)
Post Reply