Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
In one page I develop both registration and login .Based on that button name It performing actions.For login user can provide email and password.Based on user provide the data i am checking with database fields.If both are same i have to redirect another page.username or password are not valid on that time i am displaying Login Failure.Login Failure is running properly.But it is redirecting other page.I wrote header function like this

header("Location:myaccount.php");
Posted
Comments
Loke.mysore 30-Apr-12 8:37am    
Tell us which page you are expecting and to which page it is redirecting.
DeepthiTanguturi 30-Apr-12 9:00am    
I am expecting myaccount page but it is redirecting index page
Mohibur Rashid 30-Apr-12 19:19pm    
your question might not help you to get answer. show us the code, then we might be able to help

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900