Bonjour,
J'ai une page "Modif_Facturation.asp" et une page "Valid_Facturation.asp", ces deux pages fonctionnent très bien.
Mon problème est le suivant :
Si j'ouvre ma page "Valid_Facturation.asp" sur Dream MX2004 et je fais F12 pour visualiser ma page, toute les données modifiées auparavant son effacées.
Je pense qu'il manque une fin sur ma requete UPDATE. Mais quoi ???
Voici mon code de ma page "Valid_Facturation.asp"
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 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <% Set connexAdmin = Server.CreateObject("ADODB.Connection") connexAdmin.Open "copyright" %> --> <% if session("identOk")<>true then response.redirect("Identification.asp")%> <head> <meta http-equiv="Content-Type" content="text/html; charset="> <title>Modification</title> <link rel="stylesheet" href="/Nouveaux site/Style/MesDonnees.css" type="text/css"> </head> <!-- The structure of this file is exactly the same as 2col_rightNav.html; the only difference between the two is the stylesheet they use --> <body> <% Str_identifiant = Request.QueryString("identifiant") strRequete="SELECT * FROM Tbl_MonCompte WHERE identifiant='" & Session("user") & "'" Set RsMonCompte=Server.CreateObject("ADODB.Recordset") RsMonCompte.Open strRequete,ConnexAdmin %> <% maVar = true If maVar Then Response.Write("<font color='red'><b>Votre nouvelle adresse de facturation à bien été prise en compte</b></font>") End If %> <br> <% StrSQL = "UPDATE Tbl_MonCompte SET Contact_facturation= '" & Request.Form("NewContactFacturation" ) & "', Etabl_facturation ='" & Request.Form("NewContactFacturation1" ) & "' , Adresse_facturation ='" & Request.Form("NewContactFacturation2" ) & "' , Telephone_facturation ='" & Request.Form("NewContactFacturation3" ) & "' , mail_facturation ='" & Request.Form("NewContactFacturation4" ) & "' WHERE identifiant='" & Session("user") & "'" Set RsMonCompte=Server.CreateObject("ADODB.Recordset") RsMonCompte.Open StrSQL,ConnexAdmin %> </body> </html>
Partager