1

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%2F%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.

asked Jan 30, 2011 at 0:17

1 Answer 1

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

https://www.php.net/manual/en/function.rawurldecode.php is what you need :)

answered Jan 30, 2011 at 0:23
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.