AJAX login

I’m looking to create a log in with just ajax, i.e. so that the page doesn’t need to be refreshed for log in…

…of course this would need to contact the database - which I can do via a XMLHttpRequest but I cannot seem to figure out how to get info back - i.e. if the login was successful (was the username and password found) … can anyone help me as to how I would do that <<

> with thanks

excellent script on the first link - really inciteful >> much obliged - thanks!!

jQuery:

http://roshanbh.com.np/2008/04/ajax-login-validation-php-jquery.html

Creating such a system involves posting the user input to the server side then returning the response back to the client.

Take a look at these also (post #5 and #7):

shall I assume that no one in this forum knows?

_thanks anyway

You should not rely solely of AJAX as the end user may have javascript disabled. Are you still running the login attempts via whatever server-side language your using. As a rule of thumb you should never trust any user submitted data, you should escape and validate it in whatever server-side language your using.