Bonjour,
Je suis débutante en PHP, merci de votre aide.
J'ai une page marque.php avec plusieurs bouton de choix.
marque.php
</table>
<p> <label> <input name="button" id="button" value="Rechercher" type="submit" /> </label> <br />
<span class="bascorps">Le renseignement des champs est
facultatif </span></p>
</form>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="500">
<tbody>
<tr>
<td><img src="images/puce-info.gif" alt="" height="24" width="21" /> <span class="titrecorps">Recherche par marque</span></td>
</tr>
</tbody>
</table>
<form id="form2" name="form2" method="post" action="resultatsM.php">
<table align="center" border="1" bordercolor="#000000" cellpadding="0" cellspacing="0" width="500">
<tbody>
<tr>
<td class="corps" align="left" bgcolor="#fbe1e2" width="33%"><img src="images/puce-infoinfosuisse.gif" alt="" height="10" width="9" /> Marque</td>
<td align="center" bgcolor="#fbe1e2" width="33%"> <label> <input name="marque" id="marque" type="text" /> </label> </td>
<td class="gauchetable" align="left" bgcolor="#fbe1e2" width="33%"> Ex : MaximarK</td>
</tr>
<tr>
<td class="corps" align="left" bgcolor="#efefef"><img src="images/puce-infoinfosuisse.gif" alt="" height="10" width="9" /> Classe NICE</td>
<td align="center" bgcolor="#efefef"><input name="classenice" id="classenice" type="text" /></td>
<td class="gauchetable" align="left" bgcolor="#efefef"> Ex : 14</td>
</tr>
</tbody>
</table>
<p> <span id="form2"> <label> <input name="button2" id="button2" value="Rechercher" onClick=goTo('resultatsM.php?TypeID="M"') type="submit" />
</label> <br />
</span></p>
_________________________________________________________
<p> <span id="form2"> <label> <input name="button2" id="button2" value="Rechercher" onClick=goTo('resultatsM.php?TypeID="M"')
A l'appel de la page resultatsM.php, je souhaite passer une variable
nommé TypeID qui contient la valeur M et récupérer cette valeur dans la page resultatsM.php pour faire un affichage
Voici le début de la page resultatsM.php
<?php
//Exécution des sripts de session ainsi que de connexion à la base de données
include ("traitement/session.php");
include ("traitement/securite.php");
include ("traitement/connexion_bdd.php");
require('traitement/navig.php');
$id = $_GET["TypeID"] ;
echo $id;
if(@$_GET["reinitialiser"]=='ok')
{
$_SESSION["paysrecherche"]=NULL;
$_SESSION["marque"]=NULL;
$_SESSION["titulaire"]=NULL;
$_SESSION["DateEcheance"]=NULL;
$_SESSION["DateEnregistrementDebut"]=NULL;
$_SESSION["DateEnregistrementFin"]=NULL;
$_SESSION["DateEcheanceDebut"]=NULL;
$_SESSION["DateEcheanceFin"]=NULL;
$_SESSION["Nice"]=NULL;
$_SESSION["Collection"]=NULL;
$_SESSION["Reference"]=NULL;
$_SESSION["Locarno"]=NULL;
$_SESSION["Genre"]=NULL;
$_SESSION["DateEcheanceFinalDebut"]=NULL;
$_SESSION["DateEcheanceFinalFin"]=NULL;
$_SESSION["MotCle"]=NULL;
$_SESSION["Design"]=NULL;
}
?>
___________________________________________________________
$id = $_GET["TypeID"] ;
echo $id;
Cette instruction n'affiche rien.
Il y a quelque chose de faux dans mon résonnement
Merci de votre aide
Isabelle