header problem

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
yasir_memon
Forum Commoner
Posts: 48
Joined: Tue Aug 11, 2009 12:29 am

header problem

Post by yasir_memon »

is there any other thing which i use instead of header

f($count>0)
{
header("Location: login.php");
}
else
{
echo "invalid user name or password";
}
sonyak
Forum Newbie
Posts: 1
Joined: Wed Aug 19, 2009 10:52 pm
Location: Jakarta, Indonesia
Contact:

Re: header problem

Post by sonyak »

what do you want to achieve? if you don't want to use header location to redirect to other URL, you can render the page with your own desired layout.
yasir_memon
Forum Commoner
Posts: 48
Joined: Tue Aug 11, 2009 12:29 am

Re: header problem

Post by yasir_memon »

can u please explain it actually i want to go on other page when user give right user name and password so kindly tell me how can i do this because when i am using header for that it display warning messages and not redirecting to other page
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Re: header problem

Post by Ollie Saunders »

Post Reply