Hey,
What the correct format to capture an array of posted data..
Thats what I have, but have also tried utotal: $('#utotal[]').val(),Code:$("#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



Reply With Quote
Bookmarks