, this is to receive the form data of the PHP controller, there is a form of data passed in, but $_REQUEST only $_GET the data in PHP, no $_POST data, which is why? (should not look at the code it?) If you need to see the code, say it, I'll fill it up again.
This is the text version of remote Address:127.0.0.1:80request url:http://localhost/app/index.php?c=member&a=submit&random= 0.122100246604532Request method:undefinedstatus code:200 okrequest headersaccept:*/*accept-encoding:gzip, deflate, Sdchaccept-language:zh-cn,zh;q=0.8,en;q=0.6,zh-tw;q=0.4,fr;q=0.2connection:keep-alivecontent-length : 42content-type:application/x-www-form-urlencodedcookie:cityid=18; cnzzdata1252926391=1013903247-1419300217-%7c1421816418; phpsessid=3fltaetqosqt69uqj9hd8imr77host:localhostorigin:http://localhostreferer:http://localhost/app/ index.php?c=makefactory&a=getvideofileuser-agent:mozilla/5.0 (IPhone; CPU iPhone os 8_0 like Mac os X applewebkit/600.1.3 (khtml, like Gecko) version/8.0 mobile/12a4345d safari/600.1.4query S Tring Parametersc:membera:submitrandom:0.122100246604532form Dataview sourcecontent:0video_id:908price:0label_id : 11Response Headerscache-control:no-store, No-cache, Must-revalidate, post-check=0, pre-check=0connection: Keep-alivecontent-length:80content-tYpe:text/htmldate:sun, 02:50:07 Gmtexpires:thu, 1981 08:52:00 gmtkeep-alive:timeout=5, Max=100Pragma:n o-cacheserver:apache/2.2.17 (WIN32) php/5.3.3x-powered-by:php/5.3.3
Reply content:
, this is to receive the form data of the PHP controller, there is a form of data passed in, but $_REQUEST only $_GET the data in PHP, no $_POST data, which is why? (should not look at the code it?) If you need to see the code, say it, I'll fill it up again.
This is the text version of remote Address:127.0.0.1:80request url:http://localhost/app/index.php?c=member&a=submit&random= 0.122100246604532Request method:undefinedstatus code:200 okrequest headersaccept:*/*accept-encoding:gzip, deflate, Sdchaccept-language:zh-cn,zh;q=0.8,en;q=0.6,zh-tw;q=0.4,fr;q=0.2connection:keep-alivecontent-length : 42content-type:application/x-www-form-urlencodedcookie:cityid=18; cnzzdata1252926391=1013903247-1419300217-%7c1421816418; phpsessid=3fltaetqosqt69uqj9hd8imr77host:localhostorigin:http://localhostreferer:http://localhost/app/ index.php?c=makefactory&a=getvideofileuser-agent:mozilla/5.0 (IPhone; CPU iPhone os 8_0 like Mac os X applewebkit/600.1.3 (khtml, like Gecko) version/8.0 mobile/12a4345d safari/600.1.4query S Tring Parametersc:membera:submitrandom:0.122100246604532form Dataview sourcecontent:0video_id:908price:0label_id : 11Response Headerscache-control:no-store, No-cache, Must-revalidate, post-check=0, pre-check=0connection: Keep-alivecontent-length:80content-tYpe:text/htmldate:sun, 02:50:07 Gmtexpires:thu, 1981 08:52:00 gmtkeep-alive:timeout=5, Max=100Pragma:n o-cacheserver:apache/2.2.17 (WIN32) php/5.3.3x-powered-by:php/5.3.3
Notice that your request method is undefined, this place should be post.
You can:
1. Set the AJAX submission mode to post
2, it is best to set the form method to post,method= "POST"
$_post can get the data? Let's put the controller code on it.
To be added.