What the correct format to capture an array of posted data..
Code: Select all
$("#trans-process").live('click',function(){
var data = {utotal: $('#utotal').val(), total: $('#total').val(), method: $('#method').val(), firstname: $('#firstname').val(), };
$("#shop").html('<center><br /><br /><img src="./loading.gif"></center>');
$.post("includes/cart-trans-process.php", data, function(response){
$("#shop").html(response);
},'text');
});
The data is being sent via <input id="utotal" name="utotal[]" type="text" size="8"> etc..
Thanks