View Single Post
  #6 (permalink)  
Old 10-16-2007, 07:29 AM
ramkumaraol ramkumaraol is offline
D-Web Programmer
 
Join Date: Jul 2007
Posts: 98
ramkumaraol is on a distinguished road
Default Re: How can I return two values to a form?

HI,
Try this code..

echo "<?xml version='1.0' encoding='iso-8859-1'?>
<response>
<imgpath>$path</imgpath>
<imgprice>$price</imgprice>
</response>";
--------------------------

var xml = xmlHttp.responseXML;
var root = xml.documentElement;
path = root.getElementsByTagName("imgpath")[0];
price = root.getElementsByTagName("imgprice")[0];
Thanks,
Ramkumar.B
Reply With Quote