Précédent   Forum des professionnels en informatique > Webmasters - Développement Web > Langages serveur > ASP
ASP Forum sur la programmation ASP. Avant de poster : Cours ASP, FAQ ASP
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 24/04/2007, 10h27   #1
Membre régulier
 
Inscription : juin 2006
Messages : 324
Détails du profil
Informations personnelles :
Localisation : France, Isère (Rhône Alpes)

Informations forums :
Inscription : juin 2006
Messages : 324
Points : 80
Points : 80
Par défaut Formulaire en ASP

Bonjour, j'ai un formulaire A qui reprend des valeurs en provenance d'un autre formulaire B.
Lorsque j'envoie le formulaire B j'ai l'erreur suivante :

Code :
1
2
3
4
5
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
 
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'id_client='.
 
/FormRegistrationRecapemsESSAI.asp, line 77
La ligne 77 correspond à la ligne : rs.Open sql, conn, 3, 3

Voici le code de mon formulaire B :

Code :
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
 
<%
Dim conn
Dim rs
Dim rs2
Dim sql
Dim connstring
 
Set conn = Server.CreateObject("ADODB.Connection")
connstring="DRIVER={Microsoft Access Driver (*.mdb)}; " & "DBQ=" & Server.MapPath(".") & "/admin/ems07.mdb" 
conn.Open connstring 
%>
 
<html>
<head>
<meta http-equiv="Content-Language" content="fr">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>EMSLIBS 2007 - Inscription</title>
<base target="_self">
</head>
<body>
 <p><b><font face="Arial" color="#5A617E">Inscription</font></b></p>
<hr color="#FA7123" align="left">
<div align="left">
&nbsp;</div>
 
 
<%sql = "SELECT * FROM RequeteEssai WHERE id_client="&Request.QueryString("id_client")&""
 
Set rs = Server.CreateObject("ADODB.Recordset")
    rs.Open sql, conn, 3, 3
if rs.EOF then  response.redirect "erreurems.html" end if
if Request("formRempli") = 1 then
If request.form("paiement") ="cb" then
response.redirect ("cbProvisoire?id_client="& rs("id_client"))
else
response.redirect ("VirementInscriptionFR.htm")
end if
end if
%>
 
 
<form action="FormRegistrationRecapemsESSAI.asp?formRempli=1" method="post" name="sponsor" onsubmit="return donneavis()">
 
<%rs.movefirst%>
	<div align="center">
		<table border="1" width="100%" id="table9" style="border-collapse: collapse">
			<tr>
				<td width="47%" align="center" valign="top">
 
	<div align="center">
		<b><font face="Arial">Coordonnées</font></b><font face="Arial"><b><br>
&nbsp;</b></font><table border="1" width="80%" id="table10" style="border-collapse: collapse">
 
			<tr><td align="right" width="198" height="21">
<font size="2" face="Arial">Société/organisme :</font></td><td height="21">
				<font size="2" face="Arial">
				<b>
 
				<% =rs("company_organism") %>
				</b>
				</font></td></tr>
 
 
 
			<tr>
				<td align="right" width="198">
				<p align="right">
				<font face="Arial" color="#000000" size="2">
								Service/laboratoire : </font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("service_laboratory") %></font></b></td>
			</tr>
					<tr><td align="right" width="198" height="21">
<font size="2" face="Arial">Adresse1 :</font></td><td height="21">
						<font size="2" face="Arial">
						<b>
						<% =rs("address1") %></b></font></td></tr>			<tr>
				<td align="right" width="198"><font face="Arial" size="2">Adresse2 :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("address2") %></font></b></td>
			</tr>
			<tr><td align="right" width="198">
<font face="Arial" size="2">Code postal :</font></td><td>
				<font size="2" face="Arial">
				<b>
				<% =rs("zip_code") %></b></font></td></tr>		
		<tr><td align="right" width="198">
<font size="2" face="Arial">Ville :</font></td><td>
			<font size="2" face="Arial">
			<b>
			<% =rs("city") %></b></font></td></tr>		
			<tr><td align="right" width="198">
<font size="2" face="Arial">Pays:</font></td><td>
				<font size="2" face="Arial">
				<b>
				<% =rs("country") %></b></font></td></tr>		
			<tr>
				<td align="right" width="198"><font face="Arial" size="2">Nom :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("genre") %>&nbsp;<% =rs("first_name") %>&nbsp;<% =rs("last_name") %></font></b></tr>
 
			<tr><td align="right" width="198">
<font face="Arial" size="2">Téléphone :</font></td><td>
				<font size="2" face="Arial">
				<b>
				<% =rs("phone") %></b></font></td></tr>		
			<tr>
				<td align="right" width="198"><font face="Arial" size="2">Fax :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("fax") %></font></b></td>
			</tr>
			<tr><td align="right" width="198">
<font size="2" face="Arial">Email :</font></td><td>
				<font size="2" face="Arial">
				<b>
				<% =rs("email") %></b></font></td></tr>		
		</table>
		<p><i><font size="2" face="Arial">Personne accompagnante : <% =rs("genre_accompagnant") %>&nbsp; <% =rs("prenom_accompagnant") %>&nbsp; <% =rs("nom_accompagnant") %></font> </i>
	</div>
				</td>
				<td width="47%" align="center" valign="top">
	<p align="center">
	<b><font face="Arial">Coordonnées&nbsp; de facturation</font></b></p>
	<div align="center">
		<table border="1" width="80%" id="table11" style="border-collapse: collapse">
			<tr>
				<td align="right" width="191">
				<font size="2" face="Arial">Société/organisme :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("company_organism_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191">
				<p align="right">
				<font face="Arial" color="#000000" size="2">
								Service/laboratoire : </font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("service_laboratory_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191">
<font size="2" face="Arial">Adresse1 :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("address1_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191"><font face="Arial" size="2">Adresse2 :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("address2_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191">
<font face="Arial" size="2">Code postal :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("zip_code_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191">
<font size="2" face="Arial">Ville :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("city_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191">
<font size="2" face="Arial">Pays:</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("country_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191"><font size="2" face="Arial">N° de 
				TVA intracom. :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("vat_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191"><font face="Arial" size="2">Nom :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("genre_invoice") %>&nbsp;<% =rs("first_name_invoice") %>&nbsp;<% =rs("last_name_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191">
<font face="Arial" size="2">Téléphone :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("phone_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191"><font face="Arial" size="2">Fax :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("fax_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191"><font face="Arial" size="2">Email :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("email_invoice") %></font></b></td>
			</tr>
		</table>
		<p>&nbsp;</div></td>
			</tr>
			<tr>
				<td width="94%" align="center" colspan="2">
 
	<b><font size="2" face="Arial">Inscription cours EMSLIB 2007 : &nbsp;<% =rs("session1") %><% =rs("session2") %></font></b>
				</td>
			</tr>
			<tr>
				<td colspan="2">
	<p align="center">&nbsp;</p>
	<p align="center"><font face="Arial"><b>Commentaires</b></font></p>
	<p align="center"><textarea rows="4" name="comments" cols="100"><% =rs("comments") %></textarea><br>
	</p>
				</td>
			</tr>
		</table>
	</div>
	<p class="MsoNormal" align="center" style="margin-left: 18.0pt">
	<b><font face="Arial">Informations de votre commande</font></b></p>
	<div align="center">
		<table border="1" width="38%" id="table8" style="border-collapse: collapse">
			<tr>
				<td align="center" width="349"><b><font face="Arial" size="2">
				Récapitulatif de vos inscriptions</font></b></td>
				<td align="center" width="116"><b><font face="Arial" size="2">
				Montant<br>
				en euros</font></b></td>
			</tr>
			<tr>
				<td width="349" align="right">
 
				<font face="Arial" size="2">Inscription Congrès TTC : </font></td>
				<td align="right" width="116"><font size="2" face="Arial"><%=FormatNumber(rs("ttcInscription"),2,,,0)%></font></td>
			</tr>
			<tr>
				<td width="349" height="24" align="right">
 
				<font face="Arial" size="2">Inscription Personne accompagnante 
				TTC :</font></td>
				<td align="right" width="116" height="24">
				<font size="2" face="Arial"><%=FormatNumber(rs("ttcAccompagnante"),2,,,0)%></font></td>
			</tr>
			<tr>
				<td width="466" colspan="2" align="right">
								&nbsp;</td>
			</tr>
			<tr>
				<td width="349" align="right" height="24" bgcolor="#C1C1C1" bordercolor="#000000">
								<font size="2" face="Arial">€ Total HT : </font></td>
				<td width="116" align="right" height="24" bgcolor="#C1C1C1" bordercolor="#000000">
								<font color="#0000FF" size="2" face="Arial">
								<%=FormatNumber(rs("ht"),2,,,0)%>
</font>
</td>
				</tr>
			<tr>
				<td width="349" align="right" bgcolor="#C1C1C1" bordercolor="#000000">
								<font size="2" face="Arial">€<b> </b>TVA (19,60%) 
								:</font></td>
				<td width="116" align="right" bgcolor="#C1C1C1" bordercolor="#000000">
								<font color="#0000FF" size="2" face="Arial">
								<%=FormatNumber(rs("vat"),2,,,0)%>
</font>
</td>
			</tr>
			<tr>
				<td width="349" align="right" bgcolor="#C1C1C1" bordercolor="#000000">
								<b><font size="2" face="Arial">€ Total TTC :</font></b></td>
				<td width="116" align="right" bgcolor="#C1C1C1" bordercolor="#000000">
								<b><font size="2" face="Arial" color="#0000FF">
								<%=FormatNumber(rs("ttc"),2,,,0)%>
</font></b>
</td>
			</tr>
			</table>
 
 
 
		<p>&nbsp;</p>
 
 
 
		<p>
		</div>
 
 
 
	<div align="center">
		<table border="0" width="30%" id="table12">
			<tr>
				<td align="center" colspan="2"><b><font size="2" face="Arial">
				Choisissez le mode de règlement :</font></b></td>
			</tr>
			<tr>
				<td align="right" width="52%"><font size="2" face="Arial">&nbsp;Carte 
				de crédit :</font></td>
				<td align="left" width="46%"><font face="Arial">
				<input type="radio" value="cb" name="paiement"></font></td>
			</tr>
			<tr>
				<td align="right" width="52%"><font size="2" face="Arial">&nbsp;Chèque ou virement 
				:</font></td>
				<td align="left" width="46%"><font face="Arial">
				<input type="radio" value="swift" name="paiement"></font></td>
			</tr>
		</table>
	</div>
	<p align="center">
				<font face="Arial">
 
	<p align="center">
 
<input type="submit" name="B1" value="Suivant">
<a href="javascript:history.back()">
<input type="button" value="Retour" name="B2"</a></p>
 
<input type=hidden name=company_organism value="<%=Request.QueryString("company_organism")%>">
<input type=hidden name=email value="<%=Request.QueryString("email")%>">
<input type=hidden name=last_name value="<%=Request.QueryString("last_name")%>">
<input type=hidden name="ht" value="<% =rs("ht")%>" >
<input type=hidden name="first_name" value="<% =rs("first_name")%>" >
<input type=hidden name="fax" value="<% =rs("fax")%>" >   
<input type=hidden name="vat" value="<% =rs("vat")%>">
<input type=hidden name="ttc" value="<% =rs("ttc")%>">
<input type=hidden name="montant" value="<% =rs("ttc")%>">
<input type=hidden name="service_laboratory" value="<% =rs("service_laboratory")%>">
<input type=hidden name="address1" value="<% =rs("address1")%>">
<input type=hidden name="address2" value="<% =rs("address2")%>">
<input type=hidden name="zip_code" value="<% =rs("zip_code")%>">
<input type=hidden name="city" value="<% =rs("city")%>">
<input type=hidden name="country" value="<% =rs("country")%>">
<input type=hidden name="phone" value="<% =rs("phone")%>">
<input type=hidden name="genre" value="<% =rs("genre")%>">
<input type=hidden name="comments" value="<% =rs("comments")%>">
<input type=hidden name="company_organism_invoice" value="<% =rs("company_organism_invoice")%>">
<input type=hidden name="last_name_invoice" value="<% =rs("last_name_invoice")%>">
<input type=hidden name="first_name_invoice" value="<% =rs("first_name_invoice")%>">
<input type=hidden name="service_laboratory_invoice" value="<% =rs("service_laboratory_invoice")%>">
<input type=hidden name="address1_invoice" value="<% =rs("address1_invoice")%>">
<input type=hidden name="address2_invoice" value="<% =rs("address2_invoice")%>">
<input type=hidden name="zip_code_invoice" value="<% =rs("zip_code_invoice")%>">
<input type=hidden name="city_invoice" value="<% =rs("city_invoice")%>">
<input type=hidden name="country_invoice" value="<% =rs("country_invoice")%>">
<input type=hidden name="vat_invoice" value="<% =rs("vat_invoice")%>">
<input type=hidden name="phone_invoice" value="<% =rs("phone_invoice")%>">
<input type=hidden name="fax_invoice" value="<% =rs("fax_invoice")%>">
<input type=hidden name="email_invoice" value="<% =rs("email_invoice")%>">
<input type=hidden name="genre_invoice" value="<% =rs("genre_invoice")%>">
<input type=hidden name="session1" value="<% =rs("session1")%>">
<input type=hidden name="session2" value="<% =rs("session2")%>">
<input type=hidden name="membre" value="<% =rs("membre")%>">
<input type=hidden name="personne_accompagnant" value="<% =rs("personne_accompagnant")%>">
<input type=hidden name="genre_accompagnant" value="<% =rs("genre_accompagnant")%>">
<input type=hidden name="nom_accompagnant" value="<% =rs("nom_accompagnant")%>">
<input type=hidden name="prenom_accompagnant" value="<% =rs("prenom_accompagnant")%>">
<input type=hidden name="devise" value="<% =rs("devise")%>">
<input type=hidden name="langue" value="<% =rs("langue")%>">
<input type=hidden name="id_client" value="<% =rs("id_client")%>">
</form>
<SCRIPT LANGUAGE="JavaScript">
if(window.print)
	{
	document.write('<A HREF="javascript:window.print()">Imprimer cette page</A>');
	}
</SCRIPT>
</body>
 
</html>
<%conn.close
set conn=nothing
%>
nicolasferraris est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 24/04/2007, 10h46   #2
Invité de passage
 
Inscription : avril 2007
Messages : 9
Détails du profil
Informations forums :
Inscription : avril 2007
Messages : 9
Points : 4
Points : 4
Ton formulaire envoie les variables par la methode GET ?
Si oui, quelle est l'url de la page quand tu es sur le formulaire B ?
Si c'est par la methode POST, c'est pas Request.QueryString mais Request.Form
peXounet est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 24/04/2007, 11h32   #3
Membre du Club
 
Avatar de vever88
 
Étudiant
Inscription : avril 2007
Messages : 114
Détails du profil
Informations personnelles :
Localisation : France, Meurthe et Moselle (Lorraine)

Informations professionnelles :
Activité : Étudiant

Informations forums :
Inscription : avril 2007
Messages : 114
Points : 46
Points : 46
Bonjour,

Citation:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14' ... line 77
-->
Code :
rs.Open sql, conn, 3, 3
-->
Code :
sql = "SELECT * FROM RequeteEssai WHERE id_client="&Request.QueryString("id_client")&""
Une erreur toute bête qui ne règlera certainement pas tous tes pb, mais il y a une guillemet (") de trop à la fin de ta requète sql

++
vever88 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 24/04/2007, 11h57   #4
Invité de passage
 
Inscription : avril 2007
Messages : 9
Détails du profil
Informations forums :
Inscription : avril 2007
Messages : 9
Points : 4
Points : 4
J'y pensais aussi, mais j'ai vu qu'on pouvait faire
Code :
 texte = "mot entre ""guillemets"" "
Ou quelque chose comme ca, mais j'ai pas compris, ca protège les guillemets ? (c'est du hors-sujet ca mais bon ..)

EDIT : D'ailleurs, dans le cas du problème technique là, il n'a pas besoin de mettre des guillemets à la fin de la chaine.
peXounet est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 24/04/2007, 13h13   #5
Membre régulier
 
Inscription : juin 2006
Messages : 324
Détails du profil
Informations personnelles :
Localisation : France, Isère (Rhône Alpes)

Informations forums :
Inscription : juin 2006
Messages : 324
Points : 80
Points : 80
j'ai mis :

Code :
<%sql = "SELECT * FROM RequeteEssai WHERE id_client="&Request.form("id_client")&""
mais il m'indique l'erreur suivante

Code :
1
2
3
4
5
6
 
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
 
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'id_client='.
 
/FormRegistrationRecapemsESSAI.asp, line 78
Pouvez-vous m'indiquer la bonne syntaxe ?
nicolasferraris est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 24/04/2007, 13h24   #6
Inactif
 
Inscription : mars 2002
Messages : 1 295
Détails du profil
Informations personnelles :
Âge : 41

Informations forums :
Inscription : mars 2002
Messages : 1 295
Points : 1 345
Points : 1 345
Tu n'as aucun élément de formulaire nommé id_client !!!
Je te suggère de lire les tutos asp de ce site.
Florian est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 24/04/2007, 14h09   #7
Membre régulier
 
Inscription : juin 2006
Messages : 324
Détails du profil
Informations personnelles :
Localisation : France, Isère (Rhône Alpes)

Informations forums :
Inscription : juin 2006
Messages : 324
Points : 80
Points : 80
Si j'ai bien un champ caché nommé "Id_client" mais peut être n'est-il pas au bon endroit.

je récapitule en essayant d'être plus claire.

J'ai un formulaire A alimenté par l'utilisateur

Le résultat du formulaire A est renvoyé par un response.redirect vers un formulaire B qui récupère la valeur "id_client" correspondant à l'enregistrement, dans la base de données
Jusque içi, tout marche
Code formulaire B :
Code :
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
 
<%
Dim conn
Dim rs
Dim sql
Dim connstring
 
Set conn = Server.CreateObject("ADODB.Connection")
 
connstring="DRIVER={Microsoft Access Driver (*.mdb)}; " & "DBQ=" & Server.MapPath(".") & "/admin/ems07.mdb" 
conn.Open connstring 
 
'--------------Selection de enregistrement dans la table essai-------------
 
sql = "SELECT * FROM essai WHERE company_organism='"&Request.QueryString("company_organism")&"' and email = '"&Request.QueryString("email")&"' and last_name='"&Request.QueryString("last_name")&"' and first_name='"&Request.QueryString("first_name")&"' and zip_code='"&Request.QueryString("zip_code")&"'"
 
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open sql, conn, 3, 3
if rs.EOF then  response.redirect "erreurems.html" end if 
rs.movefirst
 
response.redirect ("FormRegistrationRecapemsESSAI.asp?id_client="& rs("id_client"))
 
 
 
conn.close
set conn=nothing
 
%>
La valeur de l'"id_client" récupéré est renvoyé vers un formulaire C qui reprend les éléments entrés dans le formulaire A correspondant à l'"id_client"
Jusqu'içi tout marche
Code du formulaire c :
Code :
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
 
<%
Dim conn
Dim rs
Dim rs2
Dim sql
Dim connstring
 
 
Set conn = Server.CreateObject("ADODB.Connection")
 
connstring="DRIVER={Microsoft Access Driver (*.mdb)}; " & "DBQ=" & Server.MapPath(".") & "/admin/ems07.mdb" 
conn.Open connstring 
 
%>
 
<html>
 
<head>
<meta http-equiv="Content-Language" content="fr">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
 
 
<title>EMSLIBS 2007 - Inscription</title>
<base target="_self">
<script language="javascript"> 
function donneavis()     
{
if ((document.sponsor.paiement [0].checked==false) && (document.sponsor.paiement[1].checked==false))
{ alert("Vous devez choisir un mode de paiement !");
return false;
}
return true;
}
</script>
 
</head>
 
 
<body>
 
 
 
 
<p><b><font face="Arial" color="#5A617E">Inscription</font></b></p>
<hr color="#FA7123" align="left">
 
<div align="left">
&nbsp;</div>
 
 
<%sql = "SELECT * FROM RequeteEssai WHERE id_client="&Request.QueryString("id_client")&""
 
Set rs = Server.CreateObject("ADODB.Recordset")
    rs.Open sql, conn, 3, 3
if rs.EOF then  response.redirect "erreurems.html" end if
 
if Request("formRempli") = 1 then
If request.form("paiement") ="cb" then
 
response.redirect ("cbProvisoire?id_client="& rs("id_client"))
 
else
response.redirect ("VirementInscriptionFR.htm")
 
end if
end if
 
 
 
 
 
 
 
%>
 
 
<form action="FormRegistrationRecapemsESSAI.asp?formRempli=1" method="post" name="sponsor" onsubmit="return donneavis()">
 
<%rs.movefirst%>
	<div align="center">
		<table border="1" width="100%" id="table9" style="border-collapse: collapse">
			<tr>
				<td width="47%" align="center" valign="top">
 
	<div align="center">
		<b><font face="Arial">Coordonnées</font></b><font face="Arial"><b><br>
&nbsp;</b></font><table border="1" width="80%" id="table10" style="border-collapse: collapse">
 
			<tr><td align="right" width="198" height="21">
<font size="2" face="Arial">Société/organisme :</font></td><td height="21">
				<font size="2" face="Arial">
				<b>
 
				<% =rs("company_organism") %>
				</b>
				</font></td></tr>
 
 
 
			<tr>
				<td align="right" width="198">
				<p align="right">
				<font face="Arial" color="#000000" size="2">
								Service/laboratoire : </font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("service_laboratory") %></font></b></td>
			</tr>
					<tr><td align="right" width="198" height="21">
<font size="2" face="Arial">Adresse1 :</font></td><td height="21">
						<font size="2" face="Arial">
						<b>
						<% =rs("address1") %></b></font></td></tr>			<tr>
				<td align="right" width="198"><font face="Arial" size="2">Adresse2 :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("address2") %></font></b></td>
			</tr>
			<tr><td align="right" width="198">
<font face="Arial" size="2">Code postal :</font></td><td>
				<font size="2" face="Arial">
				<b>
				<% =rs("zip_code") %></b></font></td></tr>		
		<tr><td align="right" width="198">
<font size="2" face="Arial">Ville :</font></td><td>
			<font size="2" face="Arial">
			<b>
			<% =rs("city") %></b></font></td></tr>		
			<tr><td align="right" width="198">
<font size="2" face="Arial">Pays:</font></td><td>
				<font size="2" face="Arial">
				<b>
				<% =rs("country") %></b></font></td></tr>		
			<tr>
				<td align="right" width="198"><font face="Arial" size="2">Nom :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("genre") %>&nbsp;<% =rs("first_name") %>&nbsp;<% =rs("last_name") %></font></b></tr>
 
			<tr><td align="right" width="198">
<font face="Arial" size="2">Téléphone :</font></td><td>
				<font size="2" face="Arial">
				<b>
				<% =rs("phone") %></b></font></td></tr>		
			<tr>
				<td align="right" width="198"><font face="Arial" size="2">Fax :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("fax") %></font></b></td>
			</tr>
			<tr><td align="right" width="198">
<font size="2" face="Arial">Email :</font></td><td>
				<font size="2" face="Arial">
				<b>
				<% =rs("email") %></b></font></td></tr>		
		</table>
		<p><i><font size="2" face="Arial">Personne accompagnante : <% =rs("genre_accompagnant") %>&nbsp; <% =rs("prenom_accompagnant") %>&nbsp; <% =rs("nom_accompagnant") %></font> </i>
	</div>
				</td>
				<td width="47%" align="center" valign="top">
	<p align="center">
	<b><font face="Arial">Coordonnées&nbsp; de facturation</font></b></p>
	<div align="center">
		<table border="1" width="80%" id="table11" style="border-collapse: collapse">
			<tr>
				<td align="right" width="191">
				<font size="2" face="Arial">Société/organisme :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("company_organism_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191">
				<p align="right">
				<font face="Arial" color="#000000" size="2">
								Service/laboratoire : </font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("service_laboratory_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191">
<font size="2" face="Arial">Adresse1 :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("address1_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191"><font face="Arial" size="2">Adresse2 :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("address2_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191">
<font face="Arial" size="2">Code postal :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("zip_code_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191">
<font size="2" face="Arial">Ville :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("city_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191">
<font size="2" face="Arial">Pays:</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("country_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191"><font size="2" face="Arial">N° de 
				TVA intracom. :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("vat_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191"><font face="Arial" size="2">Nom :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("genre_invoice") %>&nbsp;<% =rs("first_name_invoice") %>&nbsp;<% =rs("last_name_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191">
<font face="Arial" size="2">Téléphone :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("phone_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191"><font face="Arial" size="2">Fax :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("fax_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191"><font face="Arial" size="2">Email :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("email_invoice") %></font></b></td>
			</tr>
		</table>
		<p>&nbsp;</div></td>
			</tr>
			<tr>
				<td width="94%" align="center" colspan="2">
 
	<b><font size="2" face="Arial">Inscription cours EMSLIB 2007 : &nbsp;<% =rs("session1") %><% =rs("session2") %></font></b>
				</td>
			</tr>
			<tr>
				<td colspan="2">
	<p align="center">&nbsp;</p>
	<p align="center"><font face="Arial"><b>Commentaires</b></font></p>
	<p align="center"><textarea rows="4" name="comments" cols="100"><% =rs("comments") %></textarea><br>
	</p>
				</td>
			</tr>
		</table>
	</div>
	<p class="MsoNormal" align="center" style="margin-left: 18.0pt">
	<b><font face="Arial">Informations de votre commande</font></b></p>
	<div align="center">
		<table border="1" width="38%" id="table8" style="border-collapse: collapse">
			<tr>
				<td align="center" width="349"><b><font face="Arial" size="2">
				Récapitulatif de vos inscriptions</font></b></td>
				<td align="center" width="116"><b><font face="Arial" size="2">
				Montant<br>
				en euros</font></b></td>
			</tr>
			<tr>
				<td width="349" align="right">
 
				<font face="Arial" size="2">Inscription Congrès TTC : </font></td>
				<td align="right" width="116"><font size="2" face="Arial"><%=FormatNumber(rs("ttcInscription"),2,,,0)%></font></td>
			</tr>
			<tr>
				<td width="349" height="24" align="right">
 
				<font face="Arial" size="2">Inscription Personne accompagnante 
				TTC :</font></td>
				<td align="right" width="116" height="24">
				<font size="2" face="Arial"><%=FormatNumber(rs("ttcAccompagnante"),2,,,0)%></font></td>
			</tr>
			<tr>
				<td width="466" colspan="2" align="right">
								&nbsp;</td>
			</tr>
			<tr>
				<td width="349" align="right" height="24" bgcolor="#C1C1C1" bordercolor="#000000">
								<font size="2" face="Arial">€ Total HT : </font></td>
				<td width="116" align="right" height="24" bgcolor="#C1C1C1" bordercolor="#000000">
								<font color="#0000FF" size="2" face="Arial">
								<%=FormatNumber(rs("ht"),2,,,0)%>
</font>
</td>
				</tr>
			<tr>
				<td width="349" align="right" bgcolor="#C1C1C1" bordercolor="#000000">
								<font size="2" face="Arial">€<b> </b>TVA (19,60%) 
								:</font></td>
				<td width="116" align="right" bgcolor="#C1C1C1" bordercolor="#000000">
								<font color="#0000FF" size="2" face="Arial">
								<%=FormatNumber(rs("vat"),2,,,0)%>
</font>
</td>
			</tr>
			<tr>
				<td width="349" align="right" bgcolor="#C1C1C1" bordercolor="#000000">
								<b><font size="2" face="Arial">€ Total TTC :</font></b></td>
				<td width="116" align="right" bgcolor="#C1C1C1" bordercolor="#000000">
								<b><font size="2" face="Arial" color="#0000FF">
								<%=FormatNumber(rs("ttc"),2,,,0)%>
</font></b>
</td>
			</tr>
			</table>
 
 
 
		<p>&nbsp;</p>
 
 
 
		<p>
		</div>
 
 
 
	<div align="center">
		<table border="0" width="30%" id="table12">
			<tr>
				<td align="center" colspan="2"><b><font size="2" face="Arial">
				Choisissez le mode de règlement :</font></b></td>
			</tr>
			<tr>
				<td align="right" width="52%"><font size="2" face="Arial">&nbsp;Carte 
				de crédit :</font></td>
				<td align="left" width="46%"><font face="Arial">
				<input type="radio" value="cb" name="paiement"></font></td>
			</tr>
			<tr>
				<td align="right" width="52%"><font size="2" face="Arial">&nbsp;Chèque ou virement 
				:</font></td>
				<td align="left" width="46%"><font face="Arial">
				<input type="radio" value="swift" name="paiement"></font></td>
			</tr>
		</table>
	</div>
	<p align="center">
				<font face="Arial">
 
	<p align="center">
 
<input type="submit" name="B1" value="Suivant">
<a href="javascript:history.back()">
<input type="button" value="Retour" name="B2"</a></p>
 
<input type=hidden name=company_organism value="<%=Request.QueryString("company_organism")%>">
<input type=hidden name=email value="<%=Request.QueryString("email")%>">
<input type=hidden name=last_name value="<%=Request.QueryString("last_name")%>">
<input type=hidden name="ht" value="<% =rs("ht")%>" >
<input type=hidden name="first_name" value="<% =rs("first_name")%>" >
<input type=hidden name="fax" value="<% =rs("fax")%>" >   
<input type=hidden name="vat" value="<% =rs("vat")%>">
<input type=hidden name="ttc" value="<% =rs("ttc")%>">
<input type=hidden name="montant" value="<% =rs("ttc")%>">
<input type=hidden name="service_laboratory" value="<% =rs("service_laboratory")%>">
<input type=hidden name="address1" value="<% =rs("address1")%>">
<input type=hidden name="address2" value="<% =rs("address2")%>">
<input type=hidden name="zip_code" value="<% =rs("zip_code")%>">
<input type=hidden name="city" value="<% =rs("city")%>">
<input type=hidden name="country" value="<% =rs("country")%>">
<input type=hidden name="phone" value="<% =rs("phone")%>">
<input type=hidden name="genre" value="<% =rs("genre")%>">
<input type=hidden name="comments" value="<% =rs("comments")%>">
<input type=hidden name="company_organism_invoice" value="<% =rs("company_organism_invoice")%>">
<input type=hidden name="last_name_invoice" value="<% =rs("last_name_invoice")%>">
<input type=hidden name="first_name_invoice" value="<% =rs("first_name_invoice")%>">
<input type=hidden name="service_laboratory_invoice" value="<% =rs("service_laboratory_invoice")%>">
<input type=hidden name="address1_invoice" value="<% =rs("address1_invoice")%>">
<input type=hidden name="address2_invoice" value="<% =rs("address2_invoice")%>">
<input type=hidden name="zip_code_invoice" value="<% =rs("zip_code_invoice")%>">
<input type=hidden name="city_invoice" value="<% =rs("city_invoice")%>">
<input type=hidden name="country_invoice" value="<% =rs("country_invoice")%>">
<input type=hidden name="vat_invoice" value="<% =rs("vat_invoice")%>">
<input type=hidden name="phone_invoice" value="<% =rs("phone_invoice")%>">
<input type=hidden name="fax_invoice" value="<% =rs("fax_invoice")%>">
<input type=hidden name="email_invoice" value="<% =rs("email_invoice")%>">
<input type=hidden name="genre_invoice" value="<% =rs("genre_invoice")%>">
<input type=hidden name="session1" value="<% =rs("session1")%>">
<input type=hidden name="session2" value="<% =rs("session2")%>">
<input type=hidden name="membre" value="<% =rs("membre")%>">
<input type=hidden name="personne_accompagnant" value="<% =rs("personne_accompagnant")%>">
<input type=hidden name="genre_accompagnant" value="<% =rs("genre_accompagnant")%>">
<input type=hidden name="nom_accompagnant" value="<% =rs("nom_accompagnant")%>">
<input type=hidden name="prenom_accompagnant" value="<% =rs("prenom_accompagnant")%>">
<input type=hidden name="devise" value="<% =rs("devise")%>">
<input type=hidden name="langue" value="<% =rs("langue")%>">
<input type=hidden name="id_client" value="<% =rs("id_client")%>">
</form>
<SCRIPT LANGUAGE="JavaScript">
if(window.print)
	{
	document.write('<A HREF="javascript:window.print()">Imprimer cette page</A>');
	}
</SCRIPT>
</body>
 
</html>
<%conn.close
set conn=nothing
 
%>
La validation de ce formulaire C doit renvoyer vers une page D en fonction de la case à cocher choisit dans le formulaire C
Içi j'ai une erreur du type : "Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'id_client='.

/FormRegistrationRecapemsESSAI.asp, line 77
"
nicolasferraris est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 24/04/2007, 23h10   #8
Expert Confirmé Sénior

 
Avatar de Immobilis
 
Inscription : mars 2004
Messages : 5 849
Détails du profil
Informations forums :
Inscription : mars 2004
Messages : 5 849
Points : 5 965
Points : 5 965
Salut,

Modifie comme ceci
Code :
1
2
3
<%sql = "SELECT * FROM RequeteEssai WHERE id_client="&Request.QueryString("id_client")&""
response.write sql
Set rs = Server.CreateObject("ADODB.Recordset")
Et dis nous ce que cela te renvoi.

A+
Immobilis est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/04/2007, 08h52   #9
Membre régulier
 
Inscription : juin 2006
Messages : 324
Détails du profil
Informations personnelles :
Localisation : France, Isère (Rhône Alpes)

Informations forums :
Inscription : juin 2006
Messages : 324
Points : 80
Points : 80
Mon formulaire C s'affiche avec
"SELECT * FROM RequeteEssai WHERE id_client=33" en haut (en raison de l'instruction response.write sql j'imagine) mais lorsque je l'envoi, j'ai la même erreur :
"SELECT * FROM RequeteEssai WHERE id_client=
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'id_client='.
/FormRegistrationRecapemsESSAI.asp, line 77 "

Je te remercie pour ton aide
nicolasferraris est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/04/2007, 09h36   #10
Expert Confirmé Sénior

 
Avatar de Immobilis
 
Inscription : mars 2004
Messages : 5 849
Détails du profil
Informations forums :
Inscription : mars 2004
Messages : 5 849
Points : 5 965
Points : 5 965
Ok, mais si tu regardes bien tu remarqueras que dans le premier cas tu as
Citation:
id_client=33
dans le deuxièmeDonc il manque qqch tu ne crois pas?

A+
Immobilis est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/04/2007, 09h40   #11
Membre régulier
 
Inscription : juin 2006
Messages : 324
Détails du profil
Informations personnelles :
Localisation : France, Isère (Rhône Alpes)

Informations forums :
Inscription : juin 2006
Messages : 324
Points : 80
Points : 80
J'avais effectivement remarqué.
Mais je sèche pour trouver l'erreur
nicolasferraris est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/04/2007, 10h24   #12
Expert Confirmé Sénior

 
Avatar de Immobilis
 
Inscription : mars 2004
Messages : 5 849
Détails du profil
Informations forums :
Inscription : mars 2004
Messages : 5 849
Points : 5 965
Points : 5 965
Un response.redirect ne fait pas passer les variables sauf si tu les mets dans l'url de la page vers laquelle tu rediriges
Code :
response.redirect "mapage.asp?var1=toto&var2=tata"
Immobilis est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/04/2007, 11h47   #13
Membre régulier
 
Inscription : juin 2006
Messages : 324
Détails du profil
Informations personnelles :
Localisation : France, Isère (Rhône Alpes)

Informations forums :
Inscription : juin 2006
Messages : 324
Points : 80
Points : 80
Je commence un peu peter les plombs.
Voila ca que j'ai fait (erreur identique)

Code :
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
 
<%
Dim conn
Dim rs
Dim sql
Dim connstring
Dim theid_client
 
 
Set conn = Server.CreateObject("ADODB.Connection")
 
connstring="DRIVER={Microsoft Access Driver (*.mdb)}; " & "DBQ=" & Server.MapPath(".") & "/admin/ems07.mdb" 
conn.Open connstring 
 
theid_client=Request.QueryString("id_client")
 
%>
 
<html>
 
<head>
<meta http-equiv="Content-Language" content="fr">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
 
 
<title>EMSLIBS 2007 - Inscription</title>
<base target="_self">
<script language="javascript"> 
function donneavis()     
{
if ((document.sponsor.paiement [0].checked==false) && (document.sponsor.paiement[1].checked==false))
{ alert("Vous devez choisir un mode de paiement !");
return false;
}
return true;
}
</script>
 
</head>
 
 
<body>
 
 
 
 
<p><b><font face="Arial" color="#5A617E">Inscription</font></b></p>
<hr color="#FA7123" align="left">
 
<div align="left">
&nbsp;</div>
 
<%sql = "SELECT * FROM RequeteEssai WHERE id_client="&Request.QueryString("id_client")&""
 
 
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open sql, conn, 3, 3
if rs.EOF then  response.redirect "erreurems.html" end if
 
if Request("formRempli") = 1 then
If request.form("paiement") ="cb" then
response.redirect ("cbProvisoire.asp?id_client=theid_client")
else
response.redirect ("VirementInscriptionFR.htm")
end if
end if
%>
 
 
<form action="FormRegistrationRecapemsESSAI.asp?formRempli=1" method="post" name="sponsor" onsubmit="return donneavis()">
 
<%rs.movefirst%>
	<div align="center">
		<table border="1" width="100%" id="table9" style="border-collapse: collapse">
			<tr>
				<td width="47%" align="center" valign="top">
 
	<div align="center">
		<b><font face="Arial">Coordonnées</font></b><font face="Arial"><b><br>
&nbsp;</b></font><table border="1" width="80%" id="table10" style="border-collapse: collapse">
 
			<tr><td align="right" width="198" height="21">
<font size="2" face="Arial">Société/organisme :</font></td><td height="21">
				<font size="2" face="Arial">
				<b>
 
				<% =rs("company_organism") %>
				</b>
				</font></td></tr>
 
 
 
			<tr>
				<td align="right" width="198">
				<p align="right">
				<font face="Arial" color="#000000" size="2">
								Service/laboratoire : </font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("service_laboratory") %></font></b></td>
			</tr>
					<tr><td align="right" width="198" height="21">
<font size="2" face="Arial">Adresse1 :</font></td><td height="21">
						<font size="2" face="Arial">
						<b>
						<% =rs("address1") %></b></font></td></tr>			<tr>
				<td align="right" width="198"><font face="Arial" size="2">Adresse2 :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("address2") %></font></b></td>
			</tr>
			<tr><td align="right" width="198">
<font face="Arial" size="2">Code postal :</font></td><td>
				<font size="2" face="Arial">
				<b>
				<% =rs("zip_code") %></b></font></td></tr>		
		<tr><td align="right" width="198">
<font size="2" face="Arial">Ville :</font></td><td>
			<font size="2" face="Arial">
			<b>
			<% =rs("city") %></b></font></td></tr>		
			<tr><td align="right" width="198">
<font size="2" face="Arial">Pays:</font></td><td>
				<font size="2" face="Arial">
				<b>
				<% =rs("country") %></b></font></td></tr>		
			<tr>
				<td align="right" width="198"><font face="Arial" size="2">Nom :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("genre") %>&nbsp;<% =rs("first_name") %>&nbsp;<% =rs("last_name") %></font></b></tr>
 
			<tr><td align="right" width="198">
<font face="Arial" size="2">Téléphone :</font></td><td>
				<font size="2" face="Arial">
				<b>
				<% =rs("phone") %></b></font></td></tr>		
			<tr>
				<td align="right" width="198"><font face="Arial" size="2">Fax :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("fax") %></font></b></td>
			</tr>
			<tr><td align="right" width="198">
<font size="2" face="Arial">Email :</font></td><td>
				<font size="2" face="Arial">
				<b>
				<% =rs("email") %></b></font></td></tr>		
		</table>
		<p><i><font size="2" face="Arial">Personne accompagnante : <% =rs("genre_accompagnant") %>&nbsp; <% =rs("prenom_accompagnant") %>&nbsp; <% =rs("nom_accompagnant") %></font> </i>
	</div>
				</td>
				<td width="47%" align="center" valign="top">
	<p align="center">
	<b><font face="Arial">Coordonnées&nbsp; de facturation</font></b></p>
	<div align="center">
		<table border="1" width="80%" id="table11" style="border-collapse: collapse">
			<tr>
				<td align="right" width="191">
				<font size="2" face="Arial">Société/organisme :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("company_organism_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191">
				<p align="right">
				<font face="Arial" color="#000000" size="2">
								Service/laboratoire : </font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("service_laboratory_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191">
<font size="2" face="Arial">Adresse1 :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("address1_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191"><font face="Arial" size="2">Adresse2 :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("address2_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191">
<font face="Arial" size="2">Code postal :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("zip_code_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191">
<font size="2" face="Arial">Ville :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("city_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191">
<font size="2" face="Arial">Pays:</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("country_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191"><font size="2" face="Arial">N° de 
				TVA intracom. :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("vat_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191"><font face="Arial" size="2">Nom :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("genre_invoice") %>&nbsp;<% =rs("first_name_invoice") %>&nbsp;<% =rs("last_name_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191">
<font face="Arial" size="2">Téléphone :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("phone_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191"><font face="Arial" size="2">Fax :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("fax_invoice") %></font></b></td>
			</tr>
			<tr>
				<td align="right" width="191"><font face="Arial" size="2">Email :</font></td>
				<td>
				<b><font size="2" face="Arial">
				<% =rs("email_invoice") %></font></b></td>
			</tr>
		</table>
		<p>&nbsp;</div></td>
			</tr>
			<tr>
				<td width="94%" align="center" colspan="2">
 
	<b><font size="2" face="Arial">Inscription cours EMSLIB 2007 : &nbsp;<% =rs("session1") %><% =rs("session2") %></font></b>
				</td>
			</tr>
			<tr>
				<td colspan="2">
	<p align="center">&nbsp;</p>
	<p align="center"><font face="Arial"><b>Commentaires</b></font></p>
	<p align="center"><textarea rows="4" name="comments" cols="100"><% =rs("comments") %></textarea><br>
	</p>
				</td>
			</tr>
		</table>
	</div>
	<p class="MsoNormal" align="center" style="margin-left: 18.0pt">
	<b><font face="Arial">Informations de votre commande</font></b></p>
	<div align="center">
		<table border="1" width="38%" id="table8" style="border-collapse: collapse">
			<tr>
				<td align="center" width="349"><b><font face="Arial" size="2">
				Récapitulatif de vos inscriptions</font></b></td>
				<td align="center" width="116"><b><font face="Arial" size="2">
				Montant<br>
				en euros</font></b></td>
			</tr>
			<tr>
				<td width="349" align="right">
 
				<font face="Arial" size="2">Inscription Congrès TTC : </font></td>
				<td align="right" width="116"><font size="2" face="Arial"><%=FormatNumber(rs("ttcInscription"),2,,,0)%></font></td>
			</tr>
			<tr>
				<td width="349" height="24" align="right">
 
				<font face="Arial" size="2">Inscription Personne accompagnante 
				TTC :</font></td>
				<td align="right" width="116" height="24">
				<font size="2" face="Arial"><%=FormatNumber(rs("ttcAccompagnante"),2,,,0)%></font></td>
			</tr>
			<tr>
				<td width="466" colspan="2" align="right">
								&nbsp;</td>
			</tr>
			<tr>
				<td width="349" align="right" height="24" bgcolor="#C1C1C1" bordercolor="#000000">
								<font size="2" face="Arial">€ Total HT : </font></td>
				<td width="116" align="right" height="24" bgcolor="#C1C1C1" bordercolor="#000000">
								<font color="#0000FF" size="2" face="Arial">
								<%=FormatNumber(rs("ht"),2,,,0)%>
</font>
</td>
				</tr>
			<tr>
				<td width="349" align="right" bgcolor="#C1C1C1" bordercolor="#000000">
								<font size="2" face="Arial">€<b> </b>TVA (19,60%) 
								:</font></td>
				<td width="116" align="right" bgcolor="#C1C1C1" bordercolor="#000000">
								<font color="#0000FF" size="2" face="Arial">
								<%=FormatNumber(rs("vat"),2,,,0)%>
</font>
</td>
			</tr>
			<tr>
				<td width="349" align="right" bgcolor="#C1C1C1" bordercolor="#000000">
								<b><font size="2" face="Arial">€ Total TTC :</font></b></td>
				<td width="116" align="right" bgcolor="#C1C1C1" bordercolor="#000000">
								<b><font size="2" face="Arial" color="#0000FF">
								<%=FormatNumber(rs("ttc"),2,,,0)%>
</font></b>
</td>
			</tr>
			</table>
 
 
 
		<p>&nbsp;</p>
 
 
 
		<p>
		</div>
 
 
 
	<div align="center">
		<table border="0" width="30%" id="table12">
			<tr>
				<td align="center" colspan="2"><b><font size="2" face="Arial">
				Choisissez le mode de règlement :</font></b></td>
			</tr>
			<tr>
				<td align="right" width="52%"><font size="2" face="Arial">&nbsp;Carte 
				de crédit :</font></td>
				<td align="left" width="46%"><font face="Arial">
				<input type="radio" value="cb" name="paiement"></font></td>
			</tr>
			<tr>
				<td align="right" width="52%"><font size="2" face="Arial">&nbsp;Chèque ou virement 
				:</font></td>
				<td align="left" width="46%"><font face="Arial">
				<input type="radio" value="swift" name="paiement"></font></td>
			</tr>
		</table>
	</div>
	<p align="center">
				<font face="Arial">
 
	<p align="center">
 
<input type="submit" name="B1" value="Suivant">
<a href="javascript:history.back()">
<input type="button" value="Retour" name="B2"</a></p>
 
<input type=hidden name=company_organism value="<%=Request.QueryString("company_organism")%>">
<input type=hidden name=email value="<%=Request.QueryString("email")%>">
<input type=hidden name=last_name value="<%=Request.QueryString("last_name")%>">
<input type=hidden name="ht" value="<% =rs("ht")%>" >
<input type=hidden name="first_name" value="<% =rs("first_name")%>" >
<input type=hidden name="fax" value="<% =rs("fax")%>" >   
<input type=hidden name="vat" value="<% =rs("vat")%>">
<input type=hidden name="ttc" value="<% =rs("ttc")%>">
<input type=hidden name="montant" value="<% =rs("ttc")%>">
<input type=hidden name="service_laboratory" value="<% =rs("service_laboratory")%>">
<input type=hidden name="address1" value="<% =rs("address1")%>">
<input type=hidden name="address2" value="<% =rs("address2")%>">
<input type=hidden name="zip_code" value="<% =rs("zip_code")%>">
<input type=hidden name="city" value="<% =rs("city")%>">
<input type=hidden name="country" value="<% =rs("country")%>">
<input type=hidden name="phone" value="<% =rs("phone")%>">
<input type=hidden name="genre" value="<% =rs("genre")%>">
<input type=hidden name="comments" value="<% =rs("comments")%>">
<input type=hidden name="company_organism_invoice" value="<% =rs("company_organism_invoice")%>">
<input type=hidden name="last_name_invoice" value="<% =rs("last_name_invoice")%>">
<input type=hidden name="first_name_invoice" value="<% =rs("first_name_invoice")%>">
<input type=hidden name="service_laboratory_invoice" value="<% =rs("service_laboratory_invoice")%>">
<input type=hidden name="address1_invoice" value="<% =rs("address1_invoice")%>">
<input type=hidden name="address2_invoice" value="<% =rs("address2_invoice")%>">
<input type=hidden name="zip_code_invoice" value="<% =rs("zip_code_invoice")%>">
<input type=hidden name="city_invoice" value="<% =rs("city_invoice")%>">
<input type=hidden name="country_invoice" value="<% =rs("country_invoice")%>">
<input type=hidden name="vat_invoice" value="<% =rs("vat_invoice")%>">
<input type=hidden name="phone_invoice" value="<% =rs("phone_invoice")%>">
<input type=hidden name="fax_invoice" value="<% =rs("fax_invoice")%>">
<input type=hidden name="email_invoice" value="<% =rs("email_invoice")%>">
<input type=hidden name="genre_invoice" value="<% =rs("genre_invoice")%>">
<input type=hidden name="session1" value="<% =rs("session1")%>">
<input type=hidden name="session2" value="<% =rs("session2")%>">
<input type=hidden name="membre" value="<% =rs("membre")%>">
<input type=hidden name="personne_accompagnant" value="<% =rs("personne_accompagnant")%>">
<input type=hidden name="genre_accompagnant" value="<% =rs("genre_accompagnant")%>">
<input type=hidden name="nom_accompagnant" value="<% =rs("nom_accompagnant")%>">
<input type=hidden name="prenom_accompagnant" value="<% =rs("prenom_accompagnant")%>">
<input type=hidden name="devise" value="<% =rs("devise")%>">
<input type=hidden name="langue" value="<% =rs("langue")%>">
<input type=hidden name="id_client" value="<% =rs("id_client")%>">
</form>
<SCRIPT LANGUAGE="JavaScript">
if(window.print)
	{
	document.write('<A HREF="javascript:window.print()">Imprimer cette page</A>');
	}
</SCRIPT>
</body>
 
</html>
<%conn.close
set conn=nothing
%>
nicolasferraris est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/04/2007, 12h09   #14
Expert Confirmé Sénior

 
Avatar de Immobilis
 
Inscription : mars 2004
Messages : 5 849
Détails du profil
Informations forums :
Inscription : mars 2004
Messages : 5 849
Points : 5 965
Points : 5 965
Code :
response.redirect ("cbProvisoire.asp?id_client=theid_client")
C'est quoi "theid_client"
Immobilis est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/04/2007, 12h17   #15
Membre régulier
 
Inscription : juin 2006
Messages : 324
Détails du profil
Informations personnelles :
Localisation : France, Isère (Rhône Alpes)

Informations forums :
Inscription : juin 2006
Messages : 324
Points : 80
Points : 80
J'ai déclaré la variable :

theid_client=Request.QueryString("id_client")
nicolasferraris est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/04/2007, 13h12   #16
Expert Confirmé Sénior

 
Avatar de Immobilis
 
Inscription : mars 2004
Messages : 5 849
Détails du profil
Informations forums :
Inscription : mars 2004
Messages : 5 849
Points : 5 965
Points : 5 965
ben dans ce cas
Code :
response.redirect ("cbProvisoire.asp?id_client=" & theid_client)
Immobilis est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/04/2007, 13h23   #17
Membre régulier
 
Inscription : juin 2006
Messages : 324
Détails du profil
Informations personnelles :
Localisation : France, Isère (Rhône Alpes)

Informations forums :
Inscription : juin 2006
Messages : 324
Points : 80
Points : 80
J'ai toujours la même erreur :

"Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'id_client='.

/FormRegistrationRecapemsESSAI.asp, line 58 "
nicolasferraris est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/04/2007, 13h33   #18
Expert Confirmé Sénior

 
Avatar de Immobilis
 
Inscription : mars 2004
Messages : 5 849
Détails du profil
Informations forums :
Inscription : mars 2004
Messages : 5 849
Points : 5 965
Points : 5 965
Bon... Tu pourrais faire un petit effort pour verifier tes valeurs, non?
Que donne
Code :
1
2
3
 
response.redirect ("cbProvisoire.asp?id_client=" & theid_client)
response.write(theid_client)
Immobilis est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/04/2007, 14h13   #19
Membre régulier
 
Inscription : juin 2006
Messages : 324
Détails du profil
Informations personnelles :
Localisation : France, Isère (Rhône Alpes)

Informations forums :
Inscription : juin 2006
Messages : 324
Points : 80
Points : 80
j'ai bien vérifié les valeurs en placant les "response.write(theid_client)"

içi :

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<%
Dim conn
Dim rs
Dim sql
Dim connstring
Dim theid_client
 
 
Set conn = Server.CreateObject("ADODB.Connection")
 
connstring="DRIVER={Microsoft Access Driver (*.mdb)}; " & "DBQ=" & Server.MapPath(".") & "/admin/ems07.mdb" 
conn.Open connstring 
 
theid_client=Request.QueryString("id_client")
response.write(theid_client)
%>
et là :

Code :
1
2
3
 
response.redirect ("cbProvisoire.asp?id_client=" & theid_client)
response.write(theid_client)
Je vois le résultat du 1er mais pas du 2ème
nicolasferraris est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/04/2007, 14h17   #20
Membre régulier
 
Inscription : juin 2006
Messages : 324
Détails du profil
Informations personnelles :
Localisation : France, Isère (Rhône Alpes)

Informations forums :
Inscription : juin 2006
Messages : 324
Points : 80
Points : 80
Tu peux voir ce que je veux faire en allant à la page

[URL="http://www.analyses.fr/FormInscriptionRegistrationemsESSAI.asp"]
nicolasferraris est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 15h54.


 
 
 
 
Partenaires

Hébergement Web