Page 1 of 1

header problem

Posted: Wed Aug 19, 2009 10:51 pm
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";
}

Re: header problem

Posted: Wed Aug 19, 2009 11:37 pm
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.

Re: header problem

Posted: Wed Aug 19, 2009 11:43 pm
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

Re: header problem

Posted: Thu Aug 20, 2009 8:32 am
by Ollie Saunders