Php+url

Fermé
valou - 21 juin 2007 à 15:00
 valou - 21 juin 2007 à 17:13
Bonjour,
je travaille ds une administration.jai a charge de passé 1bdd Access ss MySQL.
J'ai un script qui devrai passé en paramtèr d'URl la clé primaire d'un de mè enregistrement.Ms mon url ne récup aucun paramètr
voici mon script.si vous pouviez m'aider:)merci
<?$NomCommune = $_REQUEST["VilleSaisie"] ?><html>
<head>
<title>consultation_fiche</title>
</head>
<body>
<div style="text-align: center;">
<h1>GESTION
DES ZPPAUP
</h1>
</div>

<form method="POST" name="form1" action="consultation_fiche.php">
<table border="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td width="50%">Saisissez le nom de la commune en
majuscules :</td>
</tr>
</tbody><tbody>
<tr>
<td width="20%"><input size="80" name="VilleSaisie" value=<? echo $NomCommune ?>>
<td width="2%"></td>
<td width="50%"> <input value="valider" name="BtOk" type="submit"></td>
</tr>
</tbody>
</table>
</form>
<?
require('connexion2.php');
$Req = "Select zppaup.NumZPPAUP,NomCommune, Departement, DateDelibEtude ";
$Req = $Req."From concerner, commune, zppaup ";
$Req = $Req."Where zppaup.NumZPPAUP = concerner.NumZPPAUP ";
$Req = $Req."And concerner.NumCommune = commune.NumCommune ";
$Req = $Req."And NomCommune like '%$NomCommune%'";
$Jdd = mysql_query($Req,$cnx);
$UneLigne = mysql_fetch_array($Jdd);?>
<table border="0" width="100%" cellspacing="0">
<tr>
<td width="10%" align="center">Numéro</td>
<td width="30%" align="center">Commune</td>
<td width="10%" align="center">Dépt</td>
<td width="10%" align="center">Mise à l'étude</td>
<td width="10%" align="center">Voir détails</td>
<td width="10%" align="center">Modifier</td>
</tr>
</table><br>
<?
while($UneLigne){?>
<form method='GET' action='FichConsult.php'>
<table border="0" width="100%" cellspacing="0">
<tr>
<td width="10%" align="center"><? echo $UneLigne["NumZPPAUP"] ?></td>
<td width="30%" align="center"><? echo $UneLigne["NomCommune"] ?></td>
<td width="10%" align="center"><? echo $UneLigne["Departement"] ?></td>
<td width="10%" align="center"><? echo $UneLigne["DateDelibEtude"] ?></td>
<?$NumZPPAUP = $UneLigne["NumZPPAUP"]?>
<td width="10%" align="center"><a href="FichConsult.php?NumZPPAUP="<? echo $NumZPPAUP ?>>Détails</a></td>
<td width="10%" align="center"><a href="Ajout_zppaup.php?NumZPPAUP="<? echo $NumZPPAUP ?>>Modifier</a></td>
</tr>
</table>
</form>
<? $UneLigne = mysql_fetch_array($Jdd);}
mysql_free_result($Jdd);
mysql_close($cnx); ?>
</body>
</html>

Configuration: Windows XP
Firefox 2.0.0.4
easyphp

2 réponses

antho33 Messages postés 42 Date d'inscription mercredi 25 janvier 2006 Statut Membre Dernière intervention 20 août 2008 2
21 juin 2007 à 15:11
Un formulaire de type "GET" ne marcherais t'il pas mieux....
0
k c soi post, get ou otr sa ne march pa...j me demande si ca ne vien pa d mon echo...
0