How to parse data submitted by jquery serialize in php
天蓬老师
天蓬老师 2017-05-16 13:01:19
0
3
441

$data ="realname=lemon&numid=123"
How to convert to
$data= array('realname'=>'lemon'
,numid=>'123',)< /p>

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(3)
黄舟

Use ajax to post data to the background directly in the form of array
$.ajax({
type: "POST",
url: "some.php",
data: "name=John&location=Boston",
success: function( msg){

 alert( "Data Saved: " + msg );

}
});

巴扎黑

No need to transfer, just receive it directly

过去多啦不再A梦

No need to convert, just print it outprint_r($_POST). What you see is the data in this format

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template