Jump to content

Ajax & Php


sifar786

Recommended Posts

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'?>";

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...