I have created a home page on side div i have included login.php when i login a message should appear like welcome if it is successfull else login error try again on the same div without changing the page. plz help i have attached the pages.
give more details, the code is big and i don't think that anyone would wanna try to fix your entire code. Tell us what's the code that works and what else you want to add.
Redirect to login page and echo a $_SESSION variable inside your <div> or implement an AJAX-based routine for login processing without having to reload the page.