submitHandler: function(form) { var pwd = $('#password').val(); // md5 encode the password md5pwd = hex_md5(pwd); function submitform(){ form.submit(); } //$('#password').val(pwd); $.get('../UVServer/login.php',{email:"$('#email').val()", password: md5pwd}, function(resp) { if (resp == 'false') { // password didn't match validator.showErrors({"password":"Incorrect Password or Email Address!"}); return false; } // Password matched, submit the form submitform(); }) }
On 11/16/09 5:02 PM, "Jules" <jwira...@gmail.com> wrote: > submitHandler: function(form) { > > var pwd = $('#password').val(); // md5 encode > the password > md5pwd = hex_md5(pwd); > //$('#password').val(pwd); > > $.get('../UVServer/login.php','email='+$ > ('#email').val()+ '&password='+ md5pwd, > function(resp) { > if (resp == 'false') > { > // password didn't match > validator.showErrors({"password": > "Incorrect Password or Email Address!"}); > > return false; > } > form.submit(); // Password matched, submit > the form > > }) > > },