/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$isAjax = (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest');