Posted By

level09 on 08/18/09


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

vali29
umang_nine


Detect Ajax request


 / Published in: PHP
 

  1. if(!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest'){
  2. //If AJAX Request Then
  3. }else{
  4. //something else
  5. }

Report this snippet  

You need to login to post a comment.