P
paladin.rithe
I'm looking to use AJAX as part of the login system for a project, but
I'm not finding what I'm looking for. I've seen the example of how to
do an AJAX login, but that isn't really what I want.
What I want to do is use XMLHttpRequest to send the request, and send
back any errors (no username, bad password, whatever). But, if it is a
valid account, I'd like it to login to the system. I haven't been able
to find anything like that, and I'm not positive it's possible. I'm
using PHP as the backend, and I do have a working login, so that's not
the problem. The issue is more of, how can I get it to not change the
page if there's an error, but if it's a valid login, go to a different
page.
I hope I explained it well enough.
I'm not finding what I'm looking for. I've seen the example of how to
do an AJAX login, but that isn't really what I want.
What I want to do is use XMLHttpRequest to send the request, and send
back any errors (no username, bad password, whatever). But, if it is a
valid account, I'd like it to login to the system. I haven't been able
to find anything like that, and I'm not positive it's possible. I'm
using PHP as the backend, and I do have a working login, so that's not
the problem. The issue is more of, how can I get it to not change the
page if there's an error, but if it's a valid login, go to a different
page.
I hope I explained it well enough.