开发者

problem in saving url in jquery/mysql

hey guys im trying to save a url link in a html form but problem is i cant save urls like this :

modules.php?name=phpBB3&file=memberlist

but开发者_运维知识库 the result after using jquery is this url :

modules.php?name=phpBB3

i heard i should use json but no idea how to do that


encodeURIComponent() should help

data: "link="+encodeURIComponent(link)

Or pass data as object not string. jQuery will encode values itself:

data: {
  link: link
}


what does the client send when you invoke POST from jquery? you can use Fiddler to see the http traffic.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜