i use $.post send form data array made of object literals process.phpas follows
$('#form').submit(function(e){ var my_result = json.stringify(array);// array array store object literals. contains object literals alert(my_result); $.post('process.php', my_result, function(answer) { alert('success'); }) .fail(function() { alert('failure'); }); }); . data sent not know how access data server side , unpack storage in database. please have idea of how this? read previous post did not me @ instead got more confused.
you can access data using $_post global:
$server_side_my_result_var = $_post['my_result'];
Comments
Post a Comment