You'd probably want to use jQuery anyway, as it sounds like it'd be easiest for this.
Depending what events you wanted to call the ajax depends on the selector you use. I'd probably start by creating a function that call the ajax and then use a selector to loop through each element you want to change (via a tag name or class etc) then onblur or change, whichever suites, call your ajax passing the form parameters.
function callAjax(form)
{
$.ajax({
type: "POST",
url: "/yourscript.php",
data: $(form).serialize(), // Send all the data from the form
success: function(msg)
{
// Show a success message, or whatever
}
});
}
$("form input").blur(function()
{
callAjax($("form"));
});
Something like that
Edit: As noted above, it might be an idea to not call a request on ever blur event because that could put a lot of load on the server. You'd be best off attaching the event to the form submit so the above would be:
$("form").submit(function()
{
callAjax($("form"));
return false;
});