Comment modifier des infos en php

salahbj Messages postés 2 Date d'inscription dimanche 20 mai 2012 Statut Membre Dernière intervention 21 août 2012 - 18 nov. 2011 à 00:49
BunoCS Messages postés 15472 Date d'inscription lundi 11 juillet 2005 Statut Modérateur Dernière intervention 25 mars 2024 - 23 nov. 2011 à 16:36
donc voila je prepare actuellement mon projet de fin d'etude et je crée une application web pour gestion des patients j'ai un probleme au niveau de la modification des information des patient dc j'ai realiser une page pour lister mes patients avec leur info je vouderais faire une bouton modifier pour modifier les infos d'un patients.
SVP aidez moi sachant que je suis debutant.

<?php
include('config.php');
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns= "http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="<?php echo $design; ?>/style.css" rel="stylesheet" title="Style" />
<title>Liste des utilisateurs</title>

</head>




Voici la liste des utilisateurs:
CIN |
Nom |
Prénom |
Age |
Adresse |
Tel |
CNAM |

<?php
//On recupere les identifiants, les pseudos et les emails des utilisateurs
$req = mysql_query('select CIN, nom_p, prenom_p, age_p, adresse_p,tel_p,CNAM from fiche_patient');
while ($dnn = mysql_fetch_array($req))
{
?>
----

<form id="form1" name="form1" method="post" action="" <?php echo $dnn['CIN']; ?>>
<label for="CIN"></label>
" size="16" readonly="readonly" />
</form>,
<form id="form2" name="form2" method="post" action="">
<label for="nom"></label>
" size="16" />
</form>
,
<form id="form3" name="form3" method="post" action="">
<label for="prenom"></label>
" size="16" />
</form>,
<form id="form4" name="form4" method="post" action="">
<label for="age"></label>
" size="16" />
</form>,
<form id="form5" name="form5" method="post" action="">
<label for="adresse"></label>
" size="16" />
</form>,
<form id="form6" name="form6" method="post" action="">
<label for="tel"></label>
" size="16" />
</form>,
<form id="form7" name="form7" method="post" action="">
<label for="CNAM"></label>
" size="16" />

</form>,

<?php
}
?>




[<?php echo $url_home; ?> Retour à l'accueil] - Support du Web








</html>

1 réponse

BunoCS Messages postés 15472 Date d'inscription lundi 11 juillet 2005 Statut Modérateur Dernière intervention 25 mars 2024 103
23 nov. 2011 à 16:36
Hello,
Je t'apporte ma contribution en déplaçant ta demande dans la bonne section: PHP et non ASP.


@+
Buno
----------------------------------------
L'urgent est fait, l'impossible est en cours. Pour les miracles, prévoir un délai...
0
Rejoignez-nous