Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript How to separate PHP content returned in an AJAX Jquery POST function Re: How to separate PHP content returned in an AJAX Jquery POST function

#120211
lindsmcw
Member

Entry a bit old now, but thanks for your code stefanbar, I needed the same thing for my code.
I don’t really understand the use of this line:
header(‘Content-type: application/json’);
but it was necessary.