2

http://nomilead.com/create.php?uid=abc&key=c79a&web_url=http://dinesh707.blogspot.com/

Here im trying to send the url as a parameted "web_url". The shown is an ajax request that sends to a php server back end.

from php end im trying to capture this by

$web_url  = $_GET["web_url"];

but it does not work.

Please help me out here.

1

2 Answers 2

1

You need to URLEncode web_url.

In PHP, that would be

$url = "http://...&web_url=".urlencode("http://dinesh707.blogspot.com/");

in Javascript

url = "http://...&web_url="+encodeURIComponent("http://dinesh707.blogspot.com/");
Sign up to request clarification or add additional context in comments.

Comments

1

it must be $_GET

Comments

Your Answer

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.