How do I pass GET and POST paramaters to load method?
Posted: Thu Sep 07, 2006 2:29 am
hello
J have a php page which transfer xml with xslt.
The xml page is a php page which get parameters in GET and POST.
How do I pass the GET and POST data of the first php to the xml php page?
J have a php page which transfer xml with xslt.
The xml page is a php page which get parameters in GET and POST.
How do I pass the GET and POST data of the first php to the xml php page?
Code: Select all
<?php
$xml = new DOMDocument;
$xml->load('http://localhost/blog/');
$xsl = new DOMDocument;
$xsl->load('Happy_Blog.xsl');
$proc = new XSLTProcessor;
$proc->importStyleSheet($xsl); // attach the xsl rules
$result= $proc->transformToXML($xml);
echo str_replace('<textarea name="Description" cols="35" rows="20"/>','<textarea name="Description" cols="35" rows="20"></textarea>',$result);
?>