Is the jquerypost value garbled? How to deal with it-php Tutorial

Source: Internet
Author: User
The value of jquerypost is garbled ?????? Jscriptcodevartnull1_varsavefunction(o?##(&quot={loading&quot=#.html (saving ..); varx $ (# saveContact _ + o ). offset (). left-15; vary $ (# save jquery post value garbled characters ??????
JScript code
  Var t = null; var save = function (o) {$ ("# loading" character .html ('saving .. '); var x = $ (' # saveContact _ '+ o ). offset (). left-15; var y = $ ('# saveContact _' + o ). offset (). top-10; $ ("# pMsg" cmd.css ({display: 'block', "left": x + 'px ', "top ": y + 'px '}); var corpid =' <{$ corpid}> '; var contactid = $ ("input [name = 'contactid [" + o + "] ']"). val (); var psnamea = $ ("input [name = 'psnamea [" + o + "] ']"). val (); var psgendera = $ ("select [name = 'psgendera [" + o + "] ']"). Val (); var psagea = $ ("input [name = 'psagea [" + o + "] ']"). val (); var ctbirthday = $ ("input [name = 'ctbirthday [" + o + "] ']"). val (); var psrolea = $ ("select [name = 'psrolea [" + o + "] ']"). val (); var pspositiona = $ ("input [name = 'pspositiona [" + o + "] ']"). val (); var mobile = $ ("input [name = 'mobile [" + o + "] ']"). val (); var email1 =1 ("input [name = 'email1 [" + o + "] ']"). val (); var psdetaila = $ ("input [name = 'psdetaila [" + o + "] ']"). val (); var psad Ra = $ ("input [name = 'psadra [" + o + "] ']"). val (); var cttel = $ ("input [name = 'cttel [" + o + "] ']"). val (); // var defaultprint = $ ("input [name = 'isprintisprint [" + o + "] ']"). val (); DefaultPrint: defaultprint, var lastmodify = '<{$ uid}>'; var url = "/? P = ContactInfo & action = UpdatePs "; // alert (defaultprint); url + =" & datetime = "+ new Date (). getTime (); $. post (url, {Action: "POST", Modify_UserID: lastmodify, ContactID: contactid, CorpID: corpid, CtName: psnamea, PsSex: psgendera, CtAge: psagea, CtBirthday: ctbirthday, ctPosition: psrolea, PositionDetail: pspositiona, CtMobile: mobile, postal mail: email1, CtDetail: psdetaila, CtAdr: psadra, CtTel: cttel}, function (data, text) {$ ("# loading" ).html (data); t = setTimeout ('clearmsg () ', 1000); // alert (data );}, "text ");};
How can this problem be solved ??????????

------ Solution --------------------
EncodeURI ("The value you want to pass"), read this post I sent: http://topic.csdn.net/u/20110929/17/3b20dbbf-1525-4527-a364-a9c15977030d.html
------ Solution --------------------
Http://blog.csdn.net/youlianying/article/details/5766148

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.