ecco il problema:
nome file Username-Passwordpersicontiene il modulo)
<html>
<head>
<title>Login o Password persi?</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_validateForm() { //v4.0
var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
} else if (test!='R') { num = parseFloat(val);
if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
} if (errors) alert('The following error(s) occurred:\n'+errors);
document.MM_returnValue = (errors == '');
}
//-->
</script>
</head>
<body background="../Immagini/sfondohome2.jpg">
<div id="Layer2" style="position:absolute; left:6px; top:113px; width:982px; height:26px; z-index:2">
<div align="center">
<p><font color="#333333" size="3"><em>Nessun problema!!! Compilando il seguente
modulo ti invieremo via e-mail il Login o Password che hai perso entro 24
ore dalla richiesta.</em></font></p>
<p><em><font color="#FF0000" size="3"><strong>CONSIGLIO: </strong><font color="#000000">utilizzate
il tasto "tabulatore" per passare da un campo a un altro durante
il riempimento del modulo.</font></font></em></p>
</div>
</div>
<div id="Layer4" style="position:absolute; left:321px; top:196px; width:341px; height:268px; z-index:4" onClick="MM_validateForm('nome','','R','cognome','','R','email','','RisEmail','parola','','R');return document.MM_returnValue">
<fieldset>
<legend><strong><font color="#FF0000" face="Times New Roman">Invia le informazioni</font></strong></legend>
<form method="post" action="connLoginPasswordPersi.asp" name="form1">
<table align="center">
<tr valign="baseline">
<td nowrap align="right"><div align="left"><strong>Nome:</strong></div></td>
<td> <input type="text" name="nome" value="" size="26"> </td>
</tr>
<tr valign="baseline">
<td nowrap align="right"><div align="left"><strong>Cognome:</strong></div></td>
<td> <input name="cognome" type="text" value="" size="26" maxlength="20"> </td>
</tr>
<tr valign="baseline">
<td nowrap align="right"><div align="left"><strong>E-mail:</strong></div></td>
<td> <input name="email" type="text" value="" size="26" maxlength="30"> </td>
</tr>
<tr valign="baseline">
<td height="24" align="right" nowrap>
<div align="left"><strong>Codice di riserva:</strong></div></td>
<td> <input name="parola" type="text" value="" size="26" maxlength="8"> </td>
</tr>
<tr valign="baseline">
<td nowrap align="right"><div align="left">
<p><strong>Cosa hai perso?</strong></p>
</div></td>
<td><p>
<input type="radio" name="username" value="username">
<strong><font color="#FFFFFF">Username</font></strong></p>
<p>
<input type="radio" name="password" value="password">
<font color="#FFFFFF"><strong>Password </strong></font></p></td>
</tr>
<tr valign="baseline">
<td nowrap align="right"><div align="center"></div></td>
<td> </td>
</tr>
<tr valign="baseline">
<td nowrap align="right"> </td>
<td> <input type="submit" value="Invia">
<input type="reset" name="Submit" value="Reset"> </td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="form1">
</form> </fieldset>
<p> </p>
</div>
<div id="Layer5" style="position:absolute; left:321px; top:473px; width:341px; height:19px; z-index:5">
<div align="center"><strong><font color="#FFFFFF" size="2">TUTTI I CAMPI SONO OBBLIGATORI</font></strong></div>
</div>
<div id="Layer1" style="position:absolute; left:4px; top:7px; width:981px; height:68px; z-index:6">
<div align="center"><img src="../Immagini/banner.jpg" width="700" height="90"></div>
</div>
</body>
</html>
ecco il secondo file_________________________
nome file di connessione: connLoginPasswordPersi.asp
<%
Dim Conn
Set Conn=Server.CreateObject("ADODB.Connection")
Conn.Open "Driver={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("/mdb-database/database.mdb")
%>
_________________________________________
ecco il terzo file________________________________
nome file "invia parola" che invia i dati del form nelle colonne della tabella:
<!--#include file="connLoginPasswordPersi.asp"-->
<%
nome=Request.Form("nome")
cognome=Request.Form("cognome")
parola=Request.Form("parola")
username=Request.Form("username")
password=Request.Form("password")
email=Request.Form("email")
SQL = "INSERT INTO contattaci (nome,cognome,password,parola,username,email)"
SQL = SQL&"VALUES('"&nome&"','"&cognome&"','"&password&"','"&email&"','"&parola&"','"&username&"')"
Conn.Execute(SQL)
Response.Redirect "Indirizzamento.asp"
%>
attualmente se compilo il form invece di portami alla pagina Indirizzamento.asp mi porta alla pagina connLoginPasswordPersi.asp e cioè a una pagina bianca e i dati al database non arrivano
nome file Username-Passwordpersicontiene il modulo)
<html>
<head>
<title>Login o Password persi?</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_validateForm() { //v4.0
var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
} else if (test!='R') { num = parseFloat(val);
if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
} if (errors) alert('The following error(s) occurred:\n'+errors);
document.MM_returnValue = (errors == '');
}
//-->
</script>
</head>
<body background="../Immagini/sfondohome2.jpg">
<div id="Layer2" style="position:absolute; left:6px; top:113px; width:982px; height:26px; z-index:2">
<div align="center">
<p><font color="#333333" size="3"><em>Nessun problema!!! Compilando il seguente
modulo ti invieremo via e-mail il Login o Password che hai perso entro 24
ore dalla richiesta.</em></font></p>
<p><em><font color="#FF0000" size="3"><strong>CONSIGLIO: </strong><font color="#000000">utilizzate
il tasto "tabulatore" per passare da un campo a un altro durante
il riempimento del modulo.</font></font></em></p>
</div>
</div>
<div id="Layer4" style="position:absolute; left:321px; top:196px; width:341px; height:268px; z-index:4" onClick="MM_validateForm('nome','','R','cognome','','R','email','','RisEmail','parola','','R');return document.MM_returnValue">
<fieldset>
<legend><strong><font color="#FF0000" face="Times New Roman">Invia le informazioni</font></strong></legend>
<form method="post" action="connLoginPasswordPersi.asp" name="form1">
<table align="center">
<tr valign="baseline">
<td nowrap align="right"><div align="left"><strong>Nome:</strong></div></td>
<td> <input type="text" name="nome" value="" size="26"> </td>
</tr>
<tr valign="baseline">
<td nowrap align="right"><div align="left"><strong>Cognome:</strong></div></td>
<td> <input name="cognome" type="text" value="" size="26" maxlength="20"> </td>
</tr>
<tr valign="baseline">
<td nowrap align="right"><div align="left"><strong>E-mail:</strong></div></td>
<td> <input name="email" type="text" value="" size="26" maxlength="30"> </td>
</tr>
<tr valign="baseline">
<td height="24" align="right" nowrap>
<div align="left"><strong>Codice di riserva:</strong></div></td>
<td> <input name="parola" type="text" value="" size="26" maxlength="8"> </td>
</tr>
<tr valign="baseline">
<td nowrap align="right"><div align="left">
<p><strong>Cosa hai perso?</strong></p>
</div></td>
<td><p>
<input type="radio" name="username" value="username">
<strong><font color="#FFFFFF">Username</font></strong></p>
<p>
<input type="radio" name="password" value="password">
<font color="#FFFFFF"><strong>Password </strong></font></p></td>
</tr>
<tr valign="baseline">
<td nowrap align="right"><div align="center"></div></td>
<td> </td>
</tr>
<tr valign="baseline">
<td nowrap align="right"> </td>
<td> <input type="submit" value="Invia">
<input type="reset" name="Submit" value="Reset"> </td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="form1">
</form> </fieldset>
<p> </p>
</div>
<div id="Layer5" style="position:absolute; left:321px; top:473px; width:341px; height:19px; z-index:5">
<div align="center"><strong><font color="#FFFFFF" size="2">TUTTI I CAMPI SONO OBBLIGATORI</font></strong></div>
</div>
<div id="Layer1" style="position:absolute; left:4px; top:7px; width:981px; height:68px; z-index:6">
<div align="center"><img src="../Immagini/banner.jpg" width="700" height="90"></div>
</div>
</body>
</html>
ecco il secondo file_________________________
nome file di connessione: connLoginPasswordPersi.asp
<%
Dim Conn
Set Conn=Server.CreateObject("ADODB.Connection")
Conn.Open "Driver={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("/mdb-database/database.mdb")
%>
_________________________________________
ecco il terzo file________________________________
nome file "invia parola" che invia i dati del form nelle colonne della tabella:
<!--#include file="connLoginPasswordPersi.asp"-->
<%
nome=Request.Form("nome")
cognome=Request.Form("cognome")
parola=Request.Form("parola")
username=Request.Form("username")
password=Request.Form("password")
email=Request.Form("email")
SQL = "INSERT INTO contattaci (nome,cognome,password,parola,username,email)"
SQL = SQL&"VALUES('"&nome&"','"&cognome&"','"&password&"','"&email&"','"&parola&"','"&username&"')"
Conn.Execute(SQL)
Response.Redirect "Indirizzamento.asp"
%>
attualmente se compilo il form invece di portami alla pagina Indirizzamento.asp mi porta alla pagina connLoginPasswordPersi.asp e cioè a una pagina bianca e i dati al database non arrivano