Home > Backend Development > PHP Tutorial > PHP中如何判断AJAX提交的数据_PHP

PHP中如何判断AJAX提交的数据_PHP

WBOY
Release: 2016-06-01 12:12:52
Original
910 people have browsed it

Ajax

如果是ajax请求,以下表达式的值为真
$_SERVER["HTTP_X_REQUESTED_WITH"]==”XMLHttpRequest”
就是一个PHP的环境变量。
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