Hi! How can i redirect the browser automaticaly to another page ?
example:
in the login, is the administrator, and, by a switch condition
i want the browser to go to another page
"if (login == administrator)
goto another page ...
how to do this ?
regards,
Bruno Santos
Redirecting a page
Moderator: General Moderators
- feiticeir0
- Forum Newbie
- Posts: 8
- Joined: Tue Nov 05, 2002 1:33 pm
- Location: Castelo Branco, Portugal
<?php
if ($login == 'administrator')
{
header("Location: http://theaddress.com");
exit;
}
else
{
header("Location: http://wrongloginaddress.com");
exit;
}
?>
if ($login == 'administrator')
{
header("Location: http://theaddress.com");
exit;
}
else
{
header("Location: http://wrongloginaddress.com");
exit;
}
?>