I am getting the error "Uncaught SyntaxError: Unexpected identifier" with this AJAX call, I've tried a few workarounds but none seem to work... any ideas? Thanks in advance.
$.ajax({
type: 'POST',
url: 'ajaxManager2.php',
data:{'name1=' $targetName, 'name2=' $sourceName},
success: function() {
alert("swap success");
}
});
$targetName and $souceName are global variables so no problem there... I think I'm have trouble with the syntax...