I'm trying to write a script in javascript/jquery that will send values to a php file that will then update the database. The problem is that the values aren't being read in by the PHP file, and I have no idea why. I hard-coded in values and that worked fine. Any ideas?Here's the javascript:\[code\]function subtractHours(numberofMembers) {document.body.style.cursor = "wait";var hours = document.getElementById("hours").value;var i = 1; //numberofMembers is the total number of entries in the databasewhile(i < numberofMembers) { if(document.getElementById(i).checked) { var memberID = document.getElementById(i).value; $.post ( "subtract.php", {'hours' : hours, 'memberID' : memberID}, function(data) { document.body.style.cursor = "auto"; } ); } i++; } }\[/code\]subtract.php:\[code\]$studentID = $_POST['memberID'];$hoursToSubtract = $_POST['hours'];\[/code\]