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

WBOY
Release: 2016-06-13 10:54:37
Original
854 people have browsed it

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template