jQuery AJAX form data serialize using PHP

前端 未结 7 1498
轻奢々
轻奢々 2020-12-05 08:07

I am stuck in my code, I need to send data from the form to the check.php page and then process it.

This is my code:

The AJAX part:



        
7条回答
  •  情深已故
    2020-12-05 09:05

    I just had the same problem: You have to unserialize the data on the php side.

    Add to the beginning of your php file (Attention this short version would replace all other post variables):

    parse_str($_POST["data"], $_POST);
    

提交回复
热议问题