Run PHP code with return value
I want to make code which will run PHP code in background. I made code which will run PHP script, but I don't Know how to get return value from PHP script(does iten exist in MySQL database).
$.post("/* PATH TO THE .PHP FILE */", $("#_hsync_reg_form").serialize(), function(response) {
if(response)
{
// SOME CODE GOES HERE
}
else //ERRORS
I Know PHP side.