AJAX codes
$.ajax({
type: "POST",
url: "../updateDB.php",
data: {
field: idValue[0],
newValue: newValues,
firstName: idValue[2],
lastName: idValue[3]
},
success: function(){
}
});
PHP File (updateDB.php)
$field = $_POST['field'];
$newValue = $_POST['newValue'];
$firstName = $_POST['firstName'];
$lastName = $_POST['lastName'];
I want to pass the values from my JQUERY file to my PHP file. HELP!! Thank you!