I have this part of code, ajax will call a function saveContact with parameters name, phone, email, address, is this code ok?
$.ajax({
url: 'addressbook.php',
data: 'action=saveContact()','&name='+name+'&phone='+phone+'&email='+email+'&adresa='+adresa;
dataType: 'json',
type: 'post'