I have created login page with php script. My doubt is when i give invalid username or password it should display invalid in login page itself.e.x. If you open yahoo login page and if you give invalid username or password means it shows invalid on same page. Like that i too need to write the code. What is the procedure to write the code for that.