I just installed Wamp Server to test on localhost so I can locally test Ajax POSTs to PHP scripts. These scripts use the Print command to return req.responseText to the app. However, it sends a bunch of html code preceding what is in the Print statement. This works properly from my Host domain, it gets just what it should without the extra html. I’m new to Wamp Server so there is probably an incorrect setting in PHP. Anyone know why the extra html code?
But this brings up another question: is Print or Echo the best way to return server side data to the app? I can use readFile to read the same data from a file on the server. Is this a better way to get the req.responseText?
Thanks, John