so i am messing around with jquery's .load(). I'm sending an array of parameters to a php script to be executed like so:
the problem is, how to i retrieve this 'param' array within my php script? is it sending a post request, so could i get it like $_POST['param'] or something?
thanks
Code:
$(document).ready(function() {
$('#result').load('test.php', { 'params[]': ["<?php echo $params[0]; ?>", "<?php echo $params[1]; ?>"] });
});
the problem is, how to i retrieve this 'param' array within my php script? is it sending a post request, so could i get it like $_POST['param'] or something?
thanks