$.ajax({ url: "/cgi-bin/insert.cgi", dataType: "json", // val_1 & val_n sind JavaScript-Variablen data: ({"field_1": val_1, "field_n", val_n}), success: function(data) { alert("data -> base"); }, error: function(error, request) { alert("There was an error. Go get the message yourself."); }, type: "GET", });