Snippets of my code are as follows:
"close_pdp_process_check" PHP Page
$output = "yes";
if(response == "yes")
alert(" The answer was yes");
Is the problem with the IF statement because response would be a JSON object? If so how to I return its value.