so far I have used pure javascript to validate my form, but I need to add a mysqli query into the mix. Only I\'m not so great with jquery and ajax. I can do a simple login form
Take a look at the Ajax Form Plugin http://malsup.com/jquery/form/.
For example, use it like this:
$(document).ready(function() {
$('#myForm').ajaxForm(
{
beforeSend: function() {
},
success: function(response)
{
//wow, it worked, let's do something with response
},
uploadProgress: function(event, position, total, percentComplete) {
/*e.g. a upload percentage label */
//var percentVal = percentComplete + '%';
//$('#myLoadingDiv').html(percentVal);
},
cache: false,
});
});