How to judge the data submitted by AJAX in PHP
- 2020-05-12 02:21:11
- OfStack
If the request is ajax, the value of the following expression is true
$_SERVER [" HTTP_X_REQUESTED_WITH "] XMLHttpRequest = = ""
It's an environment variable for PHP.
$_SERVER [" HTTP_X_REQUESTED_WITH "] XMLHttpRequest = = ""
It's an environment variable for PHP.