So if you are using AJAX to hijack a plain HTML/PHP form, and you have written the Javascript perfectly, and you're getting a 200 code so you know it's being SENT okay, but nothing seems to be coming back....

Make sure the PHP script on the other end is returning the results like this:

echo $results;

and not like this:

return $results;

30 minutes I spent on this. I hate my brain.

No comments:

Post a Comment