How to pass the value to php
234567891011121314151617 $. getJSON ("http://passport.aedu.cn/api/getlogin? Callback =? ", {Uid: encodeURI (userName. val (), pwd: encodeURI (userPwd. val ()}, function (data) {if (data. status = 0) {// success $ ("li "). hide (); $ ("# h "). hide (); $ ("# p1 "). show (); $ ("# p2 "). show (); // window. location. href = "login. php "; $ (" # a ").html (data. msg. userName); $ ("# B" ).html (data. msg. blogAddress );
How can I pass the value obtained from json in jq to php and online?
Reply to discussion (solution)
You can't use curl to parse http://passport.aedu.cn/api/getlogin? Callback =
Then use json_decode () for processing?
How to pass it to php? Yes. you can use the upstairs method to solve the problem directly.
If you have to use get, then you can get another value and then get another json file...