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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
form name="maforme" method="post" action="liste_personnel.php">
<table width="351" border="1">
<tr>
<td width="42">*Matricule</td>
<input type="text" name="textmatricule" id="textmatricule" size="15">
<td width="70"> </td>
<td width="42">Adresse</td>
<td width="42"><input name="textadresse" type="text" id="textadresse" size="15"></td>
</tr>
<tr>
<td>Nom</td>
<td><input name="textnom" type="text" id="textnom" size="15"></td>
<td> </td>
<td>TEL</td>
<td><input name="texttel" type="text" id="texttel" size="15"></td>
</tr>
<tr>
<td>Prénom</td>
<td><input name="textprenom" type="text" id="textprenom" size="15"></td>
<td> </td>
<td>Mot de pasee </td>
<td><input name="textpsw" type="password" id="textpsw" size="15"></td>
</tr>
<tr>
<td>CIN</td>
<td><input name="textcin" type="text" id="textcin" size="15"></td>
<td> </td>
<td>Type service</td>
<td><select name="select">
array(textmatricule,textadresse)
<?php
include"connection.php";
$dnn = mysql_query('SELECT intitulé FROM service');
while($info_pays = mysql_fetch_array($dnn))
{ echo '<option value="'.$info_pays['intitulé'].'"> '.$info_pays['intitulé'].'</option>';
}
?>
</select> </tr>
<tr>
<td>Date Nais </td>
<td><input name="textdatenais" type="text" id="textdatenais" size="15"></td>
<td> </td>
<td colspan="2">
<input name="Ajouter" type="submit" value="Ajouter" id="Ajouter" >
<!--,'$_POST['textnom']','$_POST['textprenom']','$_POST['textcin']','$_POST['textdatenais']','$_POST['textadresse']','$_POST['texttel']','$_POST['textpsw']','' -->
<?php
$monsql = "INSERT INTO employes(ID_EMPLOYE, NOM, PRENOM, CIN, DATE_NAISSANCE, ADRESSE, TEL, MOT_DE_PASSSE, idService) VALUES ('','','','','','','','','')";
if(mysql_query($monsql) or die ('Echec d"ajout'))
header("Location: liste_personnel.php") ;
?>
<input name="annuler" type="reset" id="annuler" value="Rétablir" onClick="annul()"> </tr>
</table>
</form> |
Partager