Is there a way that I can prevent a PHP script that is part of an AJAX app from outputting text? Right now, at the end of the script, I have it ECHO the result back so that the calling script can retrieve the result from the PHP script. Is there an alternative? Can I use "return" or something, as opposed to "echo" to get the results back from the PHP script to the calling function (which in many cases the calling function is a Javascript function).
The other thing is that the way I have my HTML form set up is that it doesn't submit or anything. The three lists I have changed automatically when one or more lists are changed, so there is no form submit happening. The AJAX scripts are simply triggered by events tied to the HTML elements, such as onChange and onBlur, etc.
Right now, as I have it, if you browse to the page that the request object sends the request to for proessing, in some cases, the PHP script will display the results from the database based on the query embedded in the script, and I sort of don't want people to be able to just run the script and see the results directly,,,,