0

Is it possible to maintain the Php post notation using a Ajax Post. For example, if I do a standard post using a HTML form and var_export the $_POST data I can see the structure of any array data. I'd like to maintain this when using a Ajax Post, I've tried using jQuery serialise and serialiseArray but these don't maintain the same format.

4

1 回答 1

0

这应该像一个魅力:

$.post("test.php", $("#form").serialize(),
   function(data){
     alert(data);
});
于 2011-02-03T10:10:19.827 回答