Jquery Ajax PHP - Pass values from PHP script into Ajax Success function?
- by Probocop
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