I have just started PHP and MySQL and have created a login form and all works well! Now I am looking to add ajax and the first method I considered is using the jQuery $.post method. I am okay with the code and here is a quick idea of what I will be doing:
function login(){
$.post('login.php', {
username:form.username.value,
password:form.password.value
})
}
All I need to know is, is this secure and if not what method should I consider?