books.php
header('Cache-Control: no-cache');
header('Content-Type: text/xml');
//echo '<?xml version="1.0" encoding="utf-8" standalone="yes"
//<item>';
$stitle = $_GET['searchterm'];
$stitle = urlencode($stitle);
//echo $stitle;
$url = "books.xml?value1=" .$stitle;
$xml = file_get_contents($url);
echo $xml;
//If I manipulate xml file here, and get data into separate variables to send them to next php script, then it messes up javascript file view.js, which uses ajax to read the xml doc.
view.js uses ajax to read that xml document and print the data in web page. This data then I need to send to next php script.

New Topic/Question
Reply



MultiQuote








|