I need to load a DIV with a seperate PHP file which then displays totals without refreshing the screen.
My problem is that I need to POST the data as the vars are too long for GET requests. So, essentially I need to do the same as the working code below with POST rather than get:
function displayTotals(d){
var url = "./include/display_totals.inc.php?a=1&b=2&c=3&d=" + d;
$("#TotalsDIV").load(url);
}
Note: The vars are not in a form so I can’t serialize it. I need to be able to assign them seperately.
Does anyone know a way to do this?
Thanks in advance.
Use the Jquery post call as above