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

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

WBOY
WBOYOriginal
2016-06-01 12:12:52902browse

Ajax

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