1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
| <body>
<form name="form" method="post"
<?php
if (isset($_POST['requet']))
{$x=$_POST['requet'];
$x1=str_replace(' ','_',$x);
//nouvelle instance
$xslt=new XSLTProcessor();
.
..
$y=str_replace('_',' ',$xml->tg);
$z=str_replace('_',' ',$xml->ts);
$w=str_replace('_',' ',$xml->ta);
$mt='biologie';
$requet=$mt.'+'.$y.'+'.$x.'+'.$z.$w;
echo ' action="http://www.google.fr/search?hl=fr&q='.$requet.'&btnG=Rechercher&meta="';
}
?>
>
<input name="requet" type="text" id="requet" size="100">
<input type="submit" name="Submit" value="Search">
</form>
</body> |
Partager