Added php code to do AJAX GET and POST