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 <<
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.