Bonjour,


J'essaye de créer un formulaire mais en vain ! J'ai une page qui submit et une autres qui recupére les informations passer par la dernière et ca foire, si quelqu'un pouvai m'aider ?

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
181
182
183
184
185
186
187
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK HREF="style.css" TYPE="text/css" REL="stylesheet">
<title>Bouda - Global solution : Suivi d'activité en temps réel - aide à la navigation - Géolocalisation
</title>
</head>
 
<!-- scripts pour le formulaire-->
<?
if (!$confirmer) {
      if (!$nom) { ?>
               <script>
                  alert('Vous devez communiquer votre nom et/ou le nom de votre société pour recevoir des informations');
                   history.go(-1);
               </script>
<?
      }
 
      if (!$message) { ?>
               <script>
                  alert('Vous devez communiquer votre message pour recevoir des informations');
                   history.go(-1);
               </script>
<?
      }
 
      if (!$mail) { ?>
        <script>
                alert('Vous devez communiquer votre adresse e-mail pour recevoir des informations');
                history.go(-1);
        </script>
<?
      }
 
}
?>
<!-- end - scripts pour le formulaire-->
 
<body>
<table width="766" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td valign="top" height="329">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="766" height="329">
  <param name="movie" value="flash/header.swf" />
  <param name="quality" value="high" />
  <embed src="flash/header.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="766" height="329"></embed>
</object>
</td>
</tr>
<tr>
<td valign="top" height="230">
<table width="766" style="height:200px; " border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="42"><img src="images/spacer.gif" alt=""></td>
 
<td valign="top" width="7">
<table width="7" style="height:200px; " border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" height="250" style="background:url(images/repeat_1.jpg) left top repeat-y; "><img src="images/spacer.gif" alt=""></td>
</tr>
<tr>
<td valign="top" height="10"><img src="images/spacer.gif" alt=""></td>
</tr>
</table>
 
</td>
<td valign="top" width="490">
<table width="589" height="200" border="0" cellpadding="0" cellspacing="0">
 
<tr>
<td width="589" height="220" valign="top"><div style="margin:0px 0 10px 5px;"><span class="titrebleu">Confirmation de votre demande d'informations :</span></div>
R&eacute;capitulatif de votre demande :<br>
  <br>
  <b>Nom / Société :</b> <? echo $nom; ?><br>
  <b>T&eacute;l&eacute;phone :</b> <? echo $tel; ?><br>
  <b>E-mail :</b> <? echo $mail; ?> <br>
  <b>Votre message : </b>
  <? echo nl2br($message); ?>
  <br>
  <br>
  Nous vous remercions de votre demande, nous la  traitons au plus vite.<br>
  A bientôt sur le site bouda.com
  <form name="mail" method="post" action="confirmation_formulaire.php3">
  <input type="hidden" name="nom" value="<? echo $nom ; ?>">
  <input type="hidden" name="mail" value="<? echo $mail; ?>">
  <input type="hidden" name="contenu" value="<?
  echo "Demande d'information depuis le site bouda.com \n\n
  -----------------------------------------------------\n\n
  Devis demandé par : \n
  Nom du contact / Société : $nom \n
  Tél. : $tel\n
  Email : $mail\n
  Message : ".stripslashes($message)." \n

  Devis demandé le ".date("j / m / Y");
 
 
  ?>">
<table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td> 
        <input type="reset" name="corriger" value="Corriger" onMouseUp="history.go(-1)">
      </td>
	  <td>&nbsp;</td>
      <td> 
        <input type="submit" name="confirmer" value="Confirmer >">
      </td>
    </tr>
  </table>
</form>
</td>
</tr>
</table>
 
</td>
<td valign="top" width="18"><img src="images/spacer.gif" alt=""></td>
</tr>
</table>
 
</td>
</tr>
<tr>
<td valign="top" height="10">
<table width="766" style="height:10px; " border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="18"><img src="images/spacer.gif" alt=""></td>
<td valign="top" width="730" style="background:url(images/line_1.jpg) left top repeat-x; "><img src="images/spacer.gif" alt=""></td>
<td valign="top" width="18"><img src="images/spacer.gif" alt=""></td>
</tr>
</table>
 
</td>
</tr>
<tr>
<td valign="top" height="87">
<table width="766" style="height:87px; " border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="86"><img src="images/spacer.gif" alt=""></td>
<td valign="top" width="206">
<div style="margin-top:19px; " class="footer">
<strong>Bouda - Global Solution </strong><br>
825, Rue André Ampère<br>
Z.I. Les Milles<br>
Aix En Provence - 13851</div>
</td>
<td valign="top" width="485">
<div style="margin-top:19px; " class="footer"><a href="#">la société </a>&nbsp;| &nbsp;<a href="bouda_solution.html">la solution </a>&nbsp;| &nbsp;<a href="bouda_terminaux.html">les terminaux </a>&nbsp;| &nbsp;<a href="bouda_partenaires.html">nos partenaires </a>&nbsp;| &nbsp;<a href="bouda_communication.html">notre communication</a>&nbsp;| <a href="bouda_contacts.html">nous contacter </a> <br>
<br style="line-height:10px; ">
copyright 2006 &copy; BOUD@ Global Solution - Tous droits réservés.
</div>
</td>
</tr>
</table>
 
</td>
</tr>
</table>
 
</body>
</html>
 
<!-- scripts pour le formulaire-->
<?
///////////////////////////////////////////////////////////////////////////
if ($confirmer)
{
 
 
        if (Mail("nicolas.philizor@sterope.fr","Demande d'informations depuis le site bouda.com",$contenu,"From: $mail")){
                ?><script language=JavaScript>
                        window.alert ("Votre demande d'informations a été envoyée");
                                                window.open ("bouda_contacts.html","_self");
                  </script>
                <?
        }
        else
        {
                 ?><script language=JavaScript>
                        window.alert ("Une erreur est survenue, votre commande n'a pas pu être envoyée");
                  </script>
                <?
        }
}
?>
<!-- end - scripts pour le formulaire-->