开发者

jQuery serialize issue

开发者 https://www.devze.com 2023-02-08 00:07 出处:网络
Making a form submit with jquery ajax and retriving form data with serialize function. But i have a problem with links inside datastring as it converts them into something like this:

Making a form submit with jquery ajax and retriving form data with serialize function. But i have a problem with links inside datastring as it converts them into something like this:

url=http%3A%2开发者_Go百科F%2Fwww.sitename.com

but i would like to return normal link like

http://www.sitename.com

and then i dont know how to reconvert this link back inside the php final file to return it. Maybe something like to string conversion or whats the idea about this?

Thank you.


echo rawurldecode("http%3A%2F%2Fwww.sitename.com"); // http://www.sitename.com

http://bg2.php.net/manual/en/function.rawurldecode.php is what you need :)

0

精彩评论

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