Below is the ajax request.
$.post(\'delete.php\', {\'deletearray\':deletearray, \'dir\':dir}, function(deleted, undeleted){ if(undeleted == 0) { aler
The best way to do jquery + ajax + php is as next:
jquery:
PHP:
$deleted, 'undeleted' => $undeleted))); exit(); } ?>