Jquery Ajax PHP - Pass values from PHP script into Ajax Success function?

Posted by Probocop on Stack Overflow See other posts from Stack Overflow or by Probocop
Published on 2010-04-26T12:51:04Z Indexed on 2010/04/26 12:53 UTC
Read the original article Hit count: 243

Filed under:
|
|

I have a form that is submitted via Ajax to a PHP script. Inside the PHP script I do a few checks for swear words.

How would I pass a 'yes' or a 'no' back to jquery from the PHP script so I can display some feedback to the user on the front end? In other words, a 'Thank you', or a 'Don't Swear!'

Thanks

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about AJAX