2010-07-16 86 views
2

http://nomilead.com/create.php?uid=abc&key=c79a&web_url=http://dinesh707.blogspot.com/从URL发送URL参数服务器(PHP/JavaScript的)_

这里我尝试发送URL作为parameted “的web_url”。显示的是一个发送到php服务器后端的ajax请求。

从php结束IM

试图通过

$web_url = $_GET["web_url"]; 

捕捉到这一点,但它不工作。

请帮我看看这里。

+0

也http://stackoverflow.com/questions/1739496/help-看on-building-a-basic-php-search-engine/1769351#1769351 – 2010-07-31 10:53:26

回答

1

您需要URLEncode web_url

在PHP中,这将是

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

url = "http://...&web_url="+encodeURIComponent("http://dinesh707.blogspot.com/"); 
1

它必须是$ _GET

+0

好点! --- – 2010-07-16 09:17:53