Bonjour,

Je suis débutant dans le langage PHP. j'ai un problème de récupérer les valeurs des champs insérer dans un tableau pour les faire passer dans un post.

Pouvez-vous m'aider. Merci
Le tableau est crée à l'intérieur de la balise Form
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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">&nbsp;</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>&nbsp;</td>
      <td>TEL</td>
      <td><input name="texttel" type="text" id="texttel" size="15"></td>
      </tr>
      <tr>
        <td>Pr&eacute;nom</td>
      <td><input name="textprenom" type="text" id="textprenom" size="15"></td>
      <td>&nbsp;</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>&nbsp;</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>&nbsp;</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&eacute;tablir" onClick="annul()">      </tr>
    </table>
  </form>