Header (redirect to new page)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
emertana
Forum Newbie
Posts: 1
Joined: Mon Jul 25, 2011 5:01 am

Header (redirect to new page)

Post by emertana »

Hi I am using MAMP and Netbeans to develop a PHP website,
Application si supposed to look for a username if find it,
will goes to a new page
if($output == 1) //Authenticated = yes
{


header("Location:Member.php");
}
although there is no error it doesn’t go to Member.php page,
please help me out
thx
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: Header (redirect to new page)

Post by social_experiment »

From the snippet of code it sounds like $output is not equal to 1. Is that the only code on the page?
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Post Reply