开发者

problem with "&" sign when using ajax to post data to php

i use tinyMce as my editor. everything is fine with sending content to save in database or echo it out. but when an ampersand sign "&" comes , all data after th开发者_运维技巧at truncated and dont save in database or echo out what should i do. here i have file , it's only 1kb, please download it, run it thank you everyone.

Download File

please if you could fine a way to get rid of "&" sign tell me and others how... .


the problem is surely in the js. you should use encodeURIComponent() to send urlencoded information. as in

var parameters = 'message='+encodeURIComponent(message);

encodeURIComponent() on w3schools

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜