I am using aMember Pro and I have a problem: I have files like this: ...., welcome.php, templates/welcome.tpl ...... amember/login.php amember/templates/login.html ....... I have modified login.html to <body> <form method=post action='/amember/login.php'> Username: <input type=text name=amember_login size=10><br> Password: <input type=password name=amember_pass size=10><br> <input type=submit value='Login'> </form> and am pullling this through AJAX as the innerHTML of a div in welcome.tpl. If the user entered correct password then login.php is taking to the correct file (say home.php). The problem is if the user has not entered the correct password then it is redirecting to login.html. I would like to know how to redirect the user in this case to the file welcome.php and not to login.html. Can anyone provide a solution for this... or any suggestions? Regards, Aditya
Thanks a lot Alex Thanks a lot Alex for the information.... am trying to work around this problem..... can you help me with this...... through ajax am posting the following details to amember/login.php like this (not through the normal form action...) amember_login: valid_username amember_pass: valid_password method: POST file: amember/login.php but the response i get from login.php is invalid password/login..... guess login.php is unable to read amember_login, amember_pass variables' values when posted to the file using techniques other than traditional form submition.... thanks a lot, warm regards, aditya
I too would like to request a way to separate core (zend) functions so that further form processing is more extensible. I haven't dug too deep, but at first glance - adding some Ajax mods appears limiting.
I'm looking to implement an Ajax based login box on my site and having issues similar to what you describe here. Ideally I would like to be able to have the user submit userid and password, but only fetch a new page if login was successful, otherwise return an "Invalid userid or password" message. Is this possible? A variant to this is a lightbox style login box that is presented when a user clicks a protected file which allows you to login without refreshing the screen. Any suggestions?
bumping this thread.. Has anyone gotten a lightbox style login box to work on their site? Is it possible?