Again Login Form not work
check what I make mistake
This code looks right. Maybe it is an issue with the data in the database or an issue with the success redirect page not properly identifying the login user.
What is the exact issue? Does it not allow you to log in? Does it always log you in? Do you get an error?
If you give me FTP access and a URL to reproduce the issue as well as the username and password you are using, then I can debug and tell you why it isn't working.
when I press login button its not redirect to next page.I am working on localhost
Update the fail redirect to add a url parameter so you can tell if it is failing the login or if it is trying to go to the admin but failing validation on the admin.php page. So update this line:
$FailedRedirect = "index.php";
to:
$FailedRedirect = "index.php?fail=1";
Then try to log in and see what the url is after you attempt to log in. If it has ?fail=1 at the end, then that means it is failing login. If not, then it may be an issue with admin.php page or the trigger for login not firing.
the url is showing http://localhost/zg/yasir/index.php?accesscheck=%2Fzg%2Fyasir%2Fadmin.php after press submit button
That means the login works, but the admin.php page is rejecting the user. So the issue may be on that page or the issue may be that Session variables aren't being stored properly on the server.
okay I redevelop my admin.php than check it
I have redevelop my admin.php file but still not login I am attaching index.php and admin.php you check it
You didn't attach the admin.php page. You attached the agents.php page.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.