bonjour,
voici mon code, je n'arrive pas à récupérer la valeur de l'input name ="refer"
pour la passer à ,une autre page

voir fin de de 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
 
<?php
session_start();
if(!session_is_registered('pseudo'))
{
header("location: ../../index.htm");
exit;
}
include("_connexion.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Saisie sur facture...</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#DFE1E6" link="#0000CC" vlink="#0000CC" alink="#0000CC" topmargin="3">
 
<form name="form1" method="get"  >
  <table width="65%" align="center" background="../../images/pix.jpg">
    <tr> 
      <td background="../../images/pix.jpg"> <div align="center"> 
          <table width="100%" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
            <tr> 
              <td><table width="100%" height="224">
                  <tr> 
                    <td width="100%" height="26" background="../../images/pix.jpg"> 
                      <div align="center"> 
                        <table width="100%" align="center" bgcolor="#FFFFFF">
                          <tr> 
                            <td height="18" valign="middle"> <div align="center"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">| 
                                <a href="../commandes/commandes.php">Commandes</a> 
                                | <a href="../programme/date_programme.php">Programme</a> 
                                | <a href="../vn/date_vn.php">Saisie VN</a> | 
                                <a href="../stock/menu.php">Edition</a> | <a href="../admin/menu.php">Admin</a></font><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><font color="#FFFFFF"> 
                                </font></font> <font size="2" face="Verdana, Arial, Helvetica, sans-serif"><font color="#FFFFFF">|</font></font> 
                                <font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="../menu.php">Retour</a></font> 
                                <font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">|</font> 
                              </div>
                              <div align="right"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="../menu.php"> 
                                </a></font></div>
                              <div align="right"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"></font></div></td>
                          </tr>
                        </table>
                        <font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"></font></div></td>
                  </tr>
                  <tr> 
                    <td height="30" background="../../images/pix.jpg"> <div align="center">
                        <table width="100%" align="center" bgcolor="#FFFFFF">
                          <tr> 
                            <td>&nbsp;</td>
                          </tr>
 
                          <tr> 
                            <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><img src="../../zim/fleche_d.gif" width="8" height="7"> 
                              <u>Saisie sur Facture</u> :</strong></font> </td>
                          </tr>
                          <tr> 
                            <td><hr align="left" width="50%" color="#0000FF"></hr></td>
                          </tr>
                          <tr></tr>
                          <tr> 
                          <? list($annee,$mois,$jour) = explode("/",$C1);
                          $datedebc = $jour."/".$mois."/".$annee; ?>
                          <? list($annee,$mois,$jour) = explode("/",$C2);
                          $datefinc = $jour."/".$mois."/".$annee; ?>
                            <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><img src="../../zim/fleche_d.gif" width="8" height="7"> 
                              <u>Date début :</u></td><td style="COLOR:#0000FF" ><B><? echo $C1 ?></B></td>
                              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><img src="../../zim/fleche_d.gif" width="8" height="7">
                              <u> Date Fin :</u></td><td style="color:#0000FF"><B><? echo $C2 ?></B></strong></font> </td>
                          </tr>
                          <tr> 
                            <td>&nbsp;</td>
                          </tr>
                           <table width="100%" align="center" bgcolor="#FFFFFF">
                          <tr><font size="1"  face="Verdana, Arial, Helvetica, sans-serif">
                                <td width="50%" ><b> Facture en cours Client : </b></td><td style="color:#0000FF"><strong><?php echo $pseudo ;?></strong></font></td>
                          </tr>
                          <tr  align="left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
                                <td><b> Saisie d'un avoir client en TTC :</b></td>
                                <td><b><input name=credit type=Text id="credit1"  style="COLOR: #0000FF; FONT-FAMILY: Verdana; FONT-SIZE: 10pt" size="10"> € </font></b></td>
                          </tr>
 
                          <tr></tr>
                          <tr></tr>
                          <tr> 
                              <td colspan="2">  
                                <?php 
 
                                // selection et affichage des infos
$requete = "SELECT prestations ,nb, somprest,remprest  FROM tempprest " ; 
$result = mysql_query ( $requete ) ; 
echo "<table class=\"texte\" width=\"100%\" border=\"0\" bordercolor=\"#000066\" cellspacing=\"0\" align=\"center\">";
echo "<tr>";
echo "<th align=\"left\" bgcolor=\"#DBE8E8\">Prestations</th>";
echo "<th align=\"center\" bgcolor=\"#DBE8E8\">Quantité</th>";
echo "<th align=\"right\" bgcolor=\"#DBE8E8\">Total Prest.(€)</th>";
echo "<th align=\"center\" bgcolor=\"#DBE8E8\">Remise</th>";
echo "</tr>";
 
while($row = mysql_fetch_assoc($result))
{
echo "<tr>";
echo "<th align=\"left\">". stripslashes($row['prestations'])."&nbsp;</th>";
echo "<th align=\"center\">". stripslashes($row['nb'])."&nbsp;</th>";
echo "<th align=\"right\">". stripslashes($row['somprest'])." € &nbsp;</th>";
echo "<th align=\"right\">". stripslashes($row['remprest'])." % &nbsp;</th>";
echo "<td WIDTH=5% align=\"center\" bgcolor=\"#339966\"><input type=\"button\" value=\"Remise\" style=\"FONT-FAMILY: Verdana; FONT-SIZE: 8pt\" OnClick=\"window.location='trait_rem.php?prestations=".$row['prestations']."'\"></td>";
echo "</tr>";
}
echo "</table>";
?>
                              </td>
                            </tr>
                       <tr> 
                       <tr></tr>
                       <tr></tr>
                          <tr> 
                              <td colspan="2">  
                                <?php  
 
                                // selection et affichage des infos                              
$requete = "SELECT codecarburant , nbcarb, somcarb, remcarb FROM tempcarb " ; 
$result = mysql_query ( $requete ) ; 
echo "<table class=\"texte\" width=\"100%\" border=\"0\" bordercolor=\"#000066\" cellspacing=\"0\" align=\"center\">";
echo "<tr>";
echo "<th align=\"left\" bgcolor=\"#DBE8E8\">Carburants</th>";
echo "<th align=\"center\" bgcolor=\"#DBE8E8\">Quantité</th>";
echo "<th align=\"right\" bgcolor=\"#DBE8E8\">Total Carb. (€)</th>";
//echo "<th align=\"center\" bgcolor=\"#DBE8E8\">Remise</th>";
echo "</tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<th align=\"left\">". stripslashes($row['codecarburant'])."&nbsp;</th>";
echo "<th align=\"center\">". stripslashes($row['nbcarb'])."&nbsp;</th>";
echo "<th align=\"right\">". stripslashes($row['somcarb'])." € &nbsp;</th>";
//echo "<th align=\"right\">". stripslashes($row['remcarb'])." % &nbsp;</th>";
//echo "<td WIDTH=5% align=\"center\" bgcolor=\"#339966\"><input type=\"button\" value=\"Remise\" style=\"FONT-FAMILY: Verdana; FONT-SIZE: 8pt\" OnClick=\"window.location='trait_remcarb.php?codecarburant=".$row['codecarburant']."'\"></td>";
} 
echo "</table>";
?>
                                </font></td>
                            </tr>
                       <tr> 
                            <td>&nbsp;</td>
                          </tr>
                          <tr  align="left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
                                <td><b> Saisie d'une référence  :</b></td>
                                <td><b><input type="Text" name="refer"    id="refer"    style="COLOR: #0000FF; FONT-FAMILY: Verdana; FONT-SIZE: 10pt" size="30"> </font></b></td>
 
                          </tr>
                          <tr  align="left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
                                <td><b> Saisie d'une remarque  :</b></td>
                                <td><b><input name="remarq" type=Text   style="COLOR: #0000FF; FONT-FAMILY: Verdana; FONT-SIZE: 10pt" size="30"> </font></b></td>
                          </tr>
 
                         </table>
 
 
 
                </table>
            </tr>
 
          <table width="100%" align="center">
            <tr> 
            <?
      echo "<input type=\"button\" value=\"Traiter la facture (suite)\" style=\"FONT-FAMILY: Verdana; FONT-SIZE: 10pt\" OnClick=\"window.location='facture.php?pseudo=$pseudo&refer=$refer'\">";
        ?>       
              <td><div align="center"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Siret 
                  : </font></div></td>
            </tr>
 
          </table>
         </table>
        </div></td>
    </tr>
  </table>
</form>
<p align="center">&nbsp;<