Bonjour tout le monde, il s'agit d'un code qui me permet de modifier une ligne cochée en utilisant une case à cocher dans un tableau, puis un formulaire pré rempli sera affiché qui me permet de modifier le contenu de chaque case
mais le code ne marche n'affiche pas les resultats voulus
le code est le suivant:
<?php
if(isset($_POST["Nom_client"]))
{
$Nom_client = $_POST["Nom_client"];
$res = mysql_query(" SELECT Nom_client,Categ,Mail,Id,Mdp,Cmdp FROM `client` WHERE Nom_client = '".$Nom_client."' ");
}
if(@mysql_num_rows($res) > 0)
{
$Nom_client = $_POST["Nom_client"];
$Categ = $_POST["Categ"];
$Mail = $_POST["Mail"];
$Id = $_POST["Id"];
$Mdp = $_POST["Mdp"];
$Cmdp = $_POST["Cmdp"];
}
?>
<!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$("#tabs").tabs();
});
</script>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
left:97px;
top:1px;
width:1162px;
height:356px;
z-index:1;
}
#Layer2 {
position:absolute;
left:35px;
top:58px;
width:1117px;
height:37px;
z-index:2;
}
-->
</style>
</head>
<body style="font-size:100%;">
<div id="Layer1">
<a href=""><h6 align="right">
<label>Deconnexion</label></h6></a>
<div id="tabs">
<ul>
<li><a href="#fragment-1"><span>Gérer les clients</span></a></li>
<li><a href="#fragment-2"><span>Gérer les adresses</span></a></li>
<li><a href="#fragment-3"><span>Cibler les contacts</span></a></li>
<li><a href="#fragment-4"><span>Préparer et envoyer message</span></a></li>
<li><a href="#fragment-5"><span>Traiter les traces</span></a></li>
</ul>
<div id="fragment-1">
<form>
<div id="Layer2">
<label>Se connecter</label>
<select name="Nom_client" onChange="sel = this.options[this.selectedIndex].value; if (sel) { twPopUp(sel,'MonPop','300','300',0) }">
<option selected="selected">Menu </option>
<option>------- </option>
<option value="ouverture_compte.php">client1</option>
<option>------- </option>
</select>
<a href="inscription_clt.php"><input name="" type="submit" value="Inscrire"></a>
<a href="afficher_clt.php"><input name="" type="button" value="Afficher"></a>
<input name="" type="submit" value="Modifier">
<input name="Input" type="submit" value="Supprimer">
</div>
<br />
<dd><dd><h4>Modification</h4>
<table align="center" width="50%">
<tr><td >Nom client:</td><td><input name="Nom_client" type="text" size="20" value="<?php $Nom_client;?>" /></td>
<tr><td>Catégorie:</td>
<td><select name="Categ" onChange="MM_jumpMenu('parent',this,0)">
<option value="<?php $Categ;?>">Assurances et Banques</option>
</select></td>
<tr><td>Adresse e-mail:</td><td><input name="Mail" type="text" size="20" value="<?php $Mail;?>" /></td>
<tr><td>Identifiant :</td><td><input name="Id" type="text" size="20" value="<?php $Id;?>" /></td>
<tr><td>Mot de passe :</td><td><input name="Mdp" type="password" size="20" value="<?php $mdp;?>" /></td>
<tr><td>Confirmer Mot de passe:</td><td><input name="Cmdp" type="password" size="20" value="<?php $Cmdp;?>" /></td>
<tr align="right"><td colspan="2"> <br /> <br /><input name="valider" type="submit" value="Valider"/><input name="reinitialiser" type="reset" value="Réinitialiser" /></td>
</table>
</form>
</div>
<div id="fragment-2"> </div>
<div id="fragment-3"> </div>
<div id="fragment-4"> </div>
<div id="fragment-5"> </div>
</div>
</div>
</body>
</html>