Home  >  Article  >  Backend Development  >  怎么获取别人通过url链接把我推送的状态 如手机号,短信内容等。

怎么获取别人通过url链接把我推送的状态 如手机号,短信内容等。

WBOY
WBOYOriginal
2016-06-06 20:08:101548browse

http://pushUrl?receiver=admin&pswd=12345&msgid=12345&reportTime=1012241002&mobile=13900210021&status=DELIVRD pushurl为我的url地址 我用$_POST得不到相应参数的值

回复内容:

http://pushUrl?receiver=admin&pswd=12345&msgid=12345&reportTime=1012241002&mobile=13900210021&status=DELIVRD pushurl为我的url地址 我用$_POST得不到相应参数的值

$_GET 吧
获取地址栏的参数值是$_GET

$_POST 获取的post的内容 而你给出的url 然后获取其中的值 需要使用 $_GET 的方式 获取内容 建议看一下post和get的 相关文档和介绍

$_REQUEST,不分get或post请求。

$_GET是用来获取url中的传递参数的,也可以用$_REQUEST,这个全局变量是统一接受http请求的参数值的

你的URL看应该是get方式。用$_GET 试试?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn