probleme avec le formulaire
Bonsoir a tous
Je suis debutant :oops: en php et je besoin d'aide
Le but de mon formulaire c'est d'appeler la page google avec notre propre requete
le code:
Code:
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> |
Apres execution la page afficher contient :
Not Implemented The server is unable to process your request.
pourtant le lien fonctionne!:evilred:
http://www.google.fr/search?hl=fr&q=...chercher&meta=
Et je ne comprend pas pourquoi?
Alors je suis sur que quelqu'un va m'aider:cry: :cry:
Et merci d'avances .