adapt php_search.php to fit with php_search.js