Home  >  Article  >  Backend Development  >  php获取现阶段网址url并替换参数

php获取现阶段网址url并替换参数

WBOY
WBOYOriginal
2016-06-13 10:54:38877browse

php获取当前网址url并替换参数

??? 没有使用ajax提交,就是最一般的提交的话,$_REQUEST[]就好了,但是如果是ajax加载也的form提交,而且想得到当前页面url中的某个参数的话,就必须使用$_SERVER['HTTP_REFERER'];然后对其进行处理

这个用firefox查看refer就能知道原理了.

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