buonasera, volevo porvi di fronte ad un problema che ho e nn riesco a risolvere.. vi posto il codice di queste pagine:
iscrizione.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Pannello di iscrizione</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<h1>Iscrizione alla Final Fantasy Family</h1>
<form action="http://www.fantasy-heaven.it/script/iscrizione.asp" method="post">
Nome: <input type="text" name="Nome">
Nickname: <input type="text" name="Nickname">
E-Mail: <input type="text" name="Posta">
<input type="submit" value="Invia dati">
<input type="reset" value="Annulla">
</form>
</body>
</html>
</body>
</html>
iscrizione.asp
<%@LANGUAGE=JScript %>
<%
var stringa1, stringa2, stringa3
stringa1 = Request.Form("Nome")
stringa2 = Request.Form("Nickname")
stringa3 = Request.Form("E-Mail")
%>
<html>
<body>
<h3>I dati che sono stati inseriti sono: </h3><hr>
Nome : <% Response.write (stringa1); %>
Nickname : <% Response.write (stringa2); %>
E-Mail : <% Response.write (stringa3); %>
<hr>
<FORM action="registra.asp" method="post">
<INPUT type="submit" value="Conferma">
</FORM>
</body>
</html>
registra.asp
<%@LANGUAGE=JScript %>
<%
var conn;
var strconn;
var strSQL;
strconn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=";
strconn = strconn + Server.MapPath("/mdb-database/family.mdb");
conn = Server.CreateObject("ADODB.Connection");
conn.Open(strconn);
strSQL = "INSERT INTO Membro(Nome, Nick, Posta)";
strSQL = strSQL + " VALUES (";
strSQL = strSQL + "'" + Request.Form("Nome") + "',";
strSQL = strSQL + "'" + Request.Form("Nickname") + "',";
strSQL = strSQL + "'" + Request.Form("Posta") + "',";
strSQL = strSQL + ")";
conn.Execute(strSQL);
conn.close();
%>
<html>
<head>
<title>Elenco FF Family</title>
</head>
<body>
<H2><% Response.Write("La tua registrazione è stata effettuata") %></H2>
Torna al modulo di registrazione</p>
</body>
</html>
allora il registra.asp mi dà problemi precisamente questo tipo di errore:
Microsoft JET Database Engine error '80040e14'
Syntax error in INSERT INTO statement.
/script/registra.asp, line 16
qualcuno sa dirmi come devo fare?![]()