sifar786 Posted July 30, 2009 Share Posted July 30, 2009 (edited) Hi,problem with the Ajax PHP ResponseXML tutorial....nothing getting displayed...Actually, the reason why nothing is displayed is because you have not instructed PHP to output the data as text/xml, rather it is still outputting it as text/html.So inclusion of a header like this just before the while loop executes solves the problem... header("Content-type:text/xml");echo "<?xml version='1.0' encoding='ISO-8859-1'?>"; Edited July 30, 2009 by sifar786 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now