salut tou le monde
je veux inserer un seule bouton pour valider deux formulaire
mais je ne trouve pas la position exacte les deux tableau sont nouveau position(alimentation et distribution) et aussi le variable numtel est inconnue je ne sais pas pourquoi
et voila le code
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<?php
$hostname_telecom = "localhost";
$database_telecom = "suged";
$username_telecom = "root";
$password_telecom = "";
$telecom = mysql_connect($hostname_telecom, $username_telecom, $password_telecom) or die(mysql_error());
 mysql_select_db($database_telecom ,$telecom) or die ('erreur de connexion base');
?>
 
 
 
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
 
<body>
<p><font color="#00FF00" size="6" face="Georgia, Times New Roman, Times, serif">Changement 
  de la Position d' un d&eacute;ranger: </font> </p>
<p>Inserer le num&eacute;ro de t&eacute;l&eacute;phone:</p>
<form name="form1" method="post" action="file:///C|/Program%20Files/EasyPHP%202.0b1/www/ProjetFinn/permu.php">
  <input type="text" name="numtel">
  <input type="submit" name="Submit" value="Submit" onKeyPress="">
</form>
<?php 
$numtel=$_POST["numtel"];
 $requete="select téte,amorcetéte,couleurtéte,distriubution,amorcedist,couleurdist from position where numtel='".$numtel."'";
 $resultat=mysql_query($requete) or die(mysql_error());
 while ($row=mysql_fetch_row($resultat))
 
        $téte=$row[1];
		$amorcetéte=$row[2];
		$couleurtéte=$row[3];
		$distribution=$row[4];
		$amorcedist=$row[5];
		$couleurdist=$row[6];
 
 
?>
<table width="93%" border="0">
  <tr>
    <td width="47%" height="298"> 
      <p><font color="#0000FF" size="5" face="Arial, Helvetica, sans-serif"><em><strong>Ancien 
        Position </strong></em></font></p>
      <p><font color="#FF9900" size="3" face="Arial, Helvetica, sans-serif"><em><strong>Alimentaion</strong></em></font> 
      </p>
	   <table width="96%" border="0">
        <tr>
          <td width="55%" height="43">T&eacute;te</td>
          <td width="45%"><?php echo  $téte ?></td>
        </tr>
        <tr>
          <td height="46">Amorce</td>
          <td><?php echo  $amorcetéte ?></td>
        </tr>
        <tr>
          <td height="51">Couleur</td>
          <td><?php echo  $couleurtéte ?></td>
        </tr>
      </table>
 
	  </td>
    <td width="53%"> <p><font color="#0000FF" size="5" face="Arial, Helvetica, sans-serif"></font> 
      </p>
      <p><font color="#FF9933" face="Arial, Helvetica, sans-serif"><em><strong>Distribution</strong></em></font></p>
      <table width="90%" border="0">
	   <tr> 
          <td width="49%" height="43">Distribution</td>
          <td width="51%"><?php echo  $distribution?></td>
        </tr>
        <tr> 
          <td height="46">Amorce</td>
          <td><?php echo  $amorcedist ?></td>
        </tr>
        <tr> 
          <td height="51">Couleur</td>
          <td><?php echo  $couleurdist ?></td>
        </tr>
      </table>
 
	  </td>
  </tr>
  <tr>
    <td height="250"> <p><font color="#0000FF" size="5" face="Arial, Helvetica, sans-serif"><strong>Nouveau 
        Position</strong></font></p>
      <p><strong><em><font color="#FF9966" size="3">Alimentation</font></em></strong> 
 
      </p>
      <table width="96%" border="0">
        <form action="file:///C|/Program%20Files/EasyPHP%202.0b1/www/ProjetFinn/permutation.php" method="post">
          <tr> 
            <td width="67%" height="43">T&eacute;te</td>
            <td width="33%"><input name="t&eacute;t&eacute;" type="text"></td>
          </tr>
          <tr> 
            <td height="46">Amorce</td>
            <td><input name="amorcet&eacute;te" type="text"></td>
          </tr>
          <tr> 
            <td height="51">couleur</td>
            <td><input name="couleurt&eacute;te" type="text"></td>
          </tr>
 
        </form>
      </table> </td>
    <td> <p>&nbsp;</p>
      <p><font color="#FF9933" size="3"><strong><em>Distribution </em></strong></font> 
      </p>
      <table width="90%" border="0">
	  <form action="file:///C|/Program%20Files/EasyPHP%202.0b1/www/ProjetFinn/permutation.php" method="post">
        <tr> 
          <td width="50%" height="43">Distribution</td>
          <td width="50%"><input name="distribution" type="text"></td>
        </tr>
        <tr> 
          <td height="46">Amorce</td>
          <td><input name="amorcedist" type="text"></td>
        </tr>
        <tr> 
          <td height="51">Couleur</td>
          <td><input type="text" name="couleurdist"></td>
        </tr>
 
		</form>
		<input name="valider" type="submit" value="VALIDER">
      </table></td>
  </tr>
</table>
<input name="" type="submit">
</body>
</html>
et merci por vous