La pagina riservata non si apre

piero 53

Nuovo Utente
19 Feb 2014
4
0
0
torino
Prima del restyling funzionava tutto, ora non riesco più ad accedere alle pagine riservate.
Questi i dati inseriti:

Caratteristiche del db:
Login.mdb
Tabella: utenti
Campi: UserID e Password

Il form è situato in pagina index non protetta
HTML:
<td style="width: 265px;" class="style56">UserID:<br />
<input name="txtUserID" style="width: 190px;" type="UserID" /><br />
&nbsp;</td>
</tr>
<tr>

<td style="width: 265px;" class="style56">
Password:
<input name="txtPassword" maxlength="4" style="width: 187px;" type="Password" />
</td>
</tr>
<tr>
<td style="width: 265px;" class="style57">
input name="Submit" value="Invia" style="width: 91px;" type="submit" />
</td>

Logon.asp
Codice:
<%
Dim UserID
Dim Password
UserID = Replace(Request.Form("UserID"), "'", "''")
Password = Replace(Request.Form("Password"), "'", "''")

Dim cn
Set cn = Server.CreateObject("ADODB.Connection")
cn.Open "driver={Microsoft Access Driver (*.mdb)};dbq="& Server.MapPath("utenti/login.mdb")&"";
Dim sql
sql = "SELECT ID FROM utenti WHERE UserID='" &UserID& "' AND Password='" &Password& "'"
Dim rs
Set rs = cn.Execute(sqlstmt, rowsupdated)

Dim autenticato
if rs.eof then
autenticato = false
else
autenticato = true
end if
rs.Close
cn.Close
Set rs = Nothing
Set cn = Nothing

if autenticato = true then
Session("Autenticato") = "OK"
Response.Redirect("homapage.html")
else
Response.Redirect("login.html")
end if
%>

A questo punto dovrebbe aprirmi la pagina protetta :homepage.html
Invece risponde

HTML:
Microsoft VBScript compilation error '800a0401' 
Expected end of statement 
/Login.asp, line 9 
cn.Open "driver={Microsoft Access Driver (*.mdb)};dbq="& Server.MapPath("utenti/login.mdb")&"";

Dove ho sbagliato? Grazie per l’aiuto.
 
...prova a togliere il punto e virgola nella riga di connessione:

Codice:
cn.Open "driver={Microsoft Access Driver (*.mdb)}; dbq="& Server.MapPath("utenti/login.mdb")&""
 
...mi pubblichi la parte HTML completa, ovvero la pagina index non protetta?
La pagina index completa non protetta è:
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Autenticazione utente tramite password</title>
<meta http-equiv="Content-Type" content="text/htm; charset=utf-8" />
<title>ASSOCIAZIONE&nbsp; VOLONTARIATO&nbsp; COTT</title>
<style type="text/css">
.style1 {
text-align: center;
}
.style2 {
border: 1px solid #D3D3D3;
text-align: center;
background-color: #CCFFFF;
}
.style3 {
border-width: 0;
background-color: #CCFFFF;
}
.style4 {
background-color: #FFFFCC;
text-align: center;
}
.style5 {
border: 1px solid #D3D3D3;
background-color: #FFFFFF;
}
.style6 {
border: 1px solid #D3D3D3;
}
.style7 {
font-family: Castellar;
color: #FFFFFF;
font-weight: normal;
}
.style8 {
font-family: Castellar;
color: #FFFFFF;
font-weight: normal;
font-size: xx-large;
}
.style32 {
border: 1px solid #D3D3D3;
text-align: center;
}
.style51 {
font-family: "Courier New", Courier, monospace;
font-style: normal;
color: #3333FF;
}
.style28 {
font-size: medium;
}
.style47 {
font-family: Aharoni;
color: rgb(255, 0, 0);
}
.style14 {
vertical-align: text-bottom;
}
.style13 {
font-size: xx-large;
color: #808000;
font-style: italic;
font-weight: bold;
}
.style55 {
border: 1px solid #D3D3D3;
text-align: center;
background-color: #FF0000;
}
.style56 {
border: 1px solid #D3D3D3;
text-align: center;
color: lime;
background-color: #FFFFFF;
}
</style>
<script type="text/javascript">
<!--
function FP_preloadImgs() {//v1.0
 var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
 for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}
function FP_swapImg() {//v1.0
 var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
 n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
 elm.$src=elm.src; elm.src=args[n+1]; } }
}
function FP_getObjectByID(id,o) {//v1.0
 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
 else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
 if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
 for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
 for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
 return null;
}
// -->
</script>
</head>
<body onload="FP_preloadImgs(/*url*/'fotop/button2D.gif',/*url*/'button10.gif',/*url*/'button11.gif',/*url*/'fotop/buttonA.gif',/*url*/'fotop/buttonB.gif',/*url*/'fotop/buttonD.gif',/*url*/'fotop/button1D.gif',/*url*/'fotop/button1E.gif',/*url*/'fotop/button5W.gif',/*url*/'fotop/button5K.gif',/*url*/'fotop/button4.gif',/*url*/'fotop/button5.gif',/*url*/'fotop/button7.gif',/*url*/'fotop/button8.gif',/*url*/'fotop/button13.gif',/*url*/'fotop/button14.gif',/*url*/'fotop/button16.gif',/*url*/'fotop/button17.gif',/*url*/'fotop/button19.gif',/*url*/'fotop/button20.gif',/*url*/'fotop/button22.gif',/*url*/'fotop/button23.gif',/*url*/'fotop/button25.gif',/*url*/'fotop/button26.gif',/*url*/'fotop/button28.gif',/*url*/'fotop/button29.gif')">
<table style="width: 100%" class="style6">
<tr>
<td style="width: 49px" class="style5">
<img src="fotop/logo.gif" width="151" height="117" /></td>
<td class="style55">
            <h1 class="style7"><strong>associazione&nbsp; volontariato&nbsp; 
cottolenghino</strong></h1>
<p class="style8"><strong>avc&nbsp; -&nbsp; onlus</strong></p>
          </td>
</tr>
<tr>
<td style="width: 49px; height: 408px;" class="style6">
            <table style="width: 155px; height: 605px;" border="0">
              <tbody>
                <tr>
                  <td style="width: 267px" class="style3">
<div class="style32">
<br />
<a href="index.html">
<img style="border: 0" id="img18" src="fotop/button3.gif" height="28" width="140" alt="Home Page" onmouseover="FP_swapImg(1,0,/*id*/'img18',/*url*/'fotop/button4.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img18',/*url*/'fotop/button3.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img18',/*url*/'fotop/button5.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img18',/*url*/'fotop/button4.gif')" /><!-- MSComment="ibutton" fp-style="fp-btn: Metal Capsule 4; fp-font: Wide Latin; fp-font-size: 8; fp-font-color-normal: #0000FF; fp-font-color-hover: #0000FF; fp-font-color-press: #0000FF; fp-transparent: 1" fp-title="Home Page" --></a><br />
<a href="chi%20siamo.html">
</a><br />
<a href="chi%20siamo.html">
<img style="border: 0" id="img19" src="fotop/button9.gif" height="28" width="140" alt="chi siamo" onmouseover="FP_swapImg(1,0,/*id*/'img19',/*url*/'fotop/button7.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img19',/*url*/'fotop/button9.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img19',/*url*/'fotop/button8.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img19',/*url*/'fotop/button7.gif')" /><!-- MSComment="ibutton" fp-style="fp-btn: Metal Capsule 4; fp-font: Wide Latin; fp-font-size: 8; fp-font-color-normal: #0000FF; fp-font-color-hover: #0000FF; fp-font-color-press: #0000FF; fp-transparent: 1" fp-title="chi siamo" --></a><br />
<br />
<a href="dove%20operiamo.html">
<img style="border: 0" id="img22" src="fotop/button18.gif" height="28" width="140" alt="dove operiamo" onmouseover="FP_swapImg(1,0,/*id*/'img22',/*url*/'fotop/button19.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img22',/*url*/'fotop/button18.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img22',/*url*/'fotop/button20.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img22',/*url*/'fotop/button19.gif')" /><!-- MSComment="ibutton" fp-style="fp-btn: Metal Capsule 4; fp-font: Wide Latin; fp-font-size: 6.5; fp-font-color-normal: #0000FF; fp-font-color-hover: #0000FF; fp-font-color-press: #0000FF; fp-transparent: 1" fp-title="dove operiamo" --></a><br />
<br />
<a href="le%20attività.html">
<img style="border: 0" id="img20" src="fotop/button12.gif" height="28" width="140" alt="le attività" onmouseover="FP_swapImg(1,0,/*id*/'img20',/*url*/'fotop/button13.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img20',/*url*/'fotop/button12.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img20',/*url*/'fotop/button14.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img20',/*url*/'fotop/button13.gif')" /><!-- MSComment="ibutton" fp-style="fp-btn: Metal Capsule 4; fp-font: Wide Latin; fp-font-size: 8; fp-font-color-normal: #0000FF; fp-font-color-hover: #0000FF; fp-font-color-press: #0000FF; fp-transparent: 1" fp-title="le attività" --></a><br />
<a href="eventi.html">
</a><br />
<a href="eventi.html">
<img style="border: 0" id="img21" src="fotop/button15.gif" height="28" width="140" alt="eventi" onmouseover="FP_swapImg(1,0,/*id*/'img21',/*url*/'fotop/button16.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img21',/*url*/'fotop/button15.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img21',/*url*/'fotop/button17.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img21',/*url*/'fotop/button16.gif')" /><!-- MSComment="ibutton" fp-style="fp-btn: Metal Capsule 4; fp-font: Wide Latin; fp-font-size: 8; fp-font-color-normal: #0000FF; fp-font-color-hover: #0000FF; fp-font-color-press: #0000FF; fp-transparent: 1" fp-title="eventi" --></a><br />
<br />
<a href="contatti%20e%20link.html">
</a><a href="documenti.html">
<img style="border: 0" id="img23" src="fotop/button21.gif" height="28" width="140" alt="documenti" onmouseover="FP_swapImg(1,0,/*id*/'img23',/*url*/'fotop/button22.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img23',/*url*/'fotop/button21.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img23',/*url*/'fotop/button23.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img23',/*url*/'fotop/button22.gif')" /><!-- MSComment="ibutton" fp-style="fp-btn: Metal Capsule 4; fp-font: Wide Latin; fp-font-size: 8; fp-font-color-normal: #0000FF; fp-font-color-hover: #0000FF; fp-font-color-press: #0000FF; fp-transparent: 1" fp-title="documenti" --></a><br />
<br />
<a href="contatti%20e%20link.html">
<img style="border: 0" id="img24" src="fotop/button24.gif" height="28" width="140" alt="contatti e link" onmouseover="FP_swapImg(1,0,/*id*/'img24',/*url*/'fotop/button25.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img24',/*url*/'fotop/button24.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img24',/*url*/'fotop/button26.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img24',/*url*/'fotop/button25.gif')" /><!-- MSComment="ibutton" fp-style="fp-btn: Metal Capsule 4; fp-font: Wide Latin; fp-font-size: 6.5; fp-font-color-normal: #0000FF; fp-font-color-hover: #0000FF; fp-font-color-press: #0000FF; fp-transparent: 1" fp-title="contatti e link" --></a><br />
<br />
<a href="login.html">
<img style="border: 0" id="img25" src="fotop/button27.gif" height="28" width="140" alt="Riservato" onmouseover="FP_swapImg(1,0,/*id*/'img25',/*url*/'fotop/button28.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img25',/*url*/'fotop/button27.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img25',/*url*/'fotop/button29.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img25',/*url*/'fotop/button28.gif')" /><!-- MSComment="ibutton" fp-style="fp-btn: Metal Capsule 4; fp-font: Wide Latin; fp-font-size: 8; fp-font-color-normal: #0000FF; fp-font-color-hover: #0000FF; fp-font-color-press: #0000FF; fp-transparent: 1" fp-title="Riservato" --></a><br />
<br />
</div>
</td>
                </tr>
                <tr>
                  <td style="width: 267px; height: 605px; " class="style4" valign="top">
<div class="style1">
<em><span class="style28"> 
<div>
<html>
<body>
</body>
</HTML>
<br />
</div>
<form name="frmLogin" method="post" action="Login.asp"></form>
<font face="Arial" size="2"/>
<strong>
<big><big>
<big>
<span class="style47"></span><img src="http://www.accessi.it/counter.php?user=avconlus" alt="Accessi.IT" style="float: center;" class="style14" align="top" /></big></big></big></strong>
<br />
<td style="vertical-align: top; height: 174px; " class="style35">
<div class="style32">					
                    </div>
</td>
                </span></em></div></td></tr>
              </tbody>
            </table>
            </td>
<td class="style56" valign="top" style="height: 408px">
<span style="font-weight: bold; " class="style51"/>
<span style="font-family: Times New Roman;"/>
      <span style="font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"/>
<font face="Arial Black" size="2"/>
<span style="font-family: Arial;"/>
<span class="style13"/>
<big><big><big><font face="Arial" size="2">
<style type="text/css">
<!-- 
.input { border-style: none;
         font-family:Verdana,Arial,Helvetica,sans-serif;
 font-size:25pt;
     color : #AEAE00;
       }
-->
</style>
<span id="clock" class="input"></span>
<script type="text/javascript" language="JavaScript">
<!-- 
/* prelevato sul sito di http://www.web-link.it */
function aggiorna() {
var mesi = new Array("Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre");
var nomeGiorno = new Array('Domenica','Lunedi','Martedi','Mercoledi','Giovedi','Venerdi','Sabato');
Data = new Date()
Giorno = Data.getDate()
Mese = Data.getMonth()
Anno = Data.getFullYear() 
Ore = Data.getHours()
Minuti = Data.getMinutes()
Secondi = Data.getSeconds()
if ((Ore > 6) && (Ore < 13)) Saluto = "Buon giorno"
if ((Ore > 12) && (Ore < 18)) Saluto = "Buon pomeriggio"
if ((Ore > 17) && (Ore < 22)) Saluto = "Buona sera"
if (Ore > 21) Saluto = "Buona notte"
if (Ore < 7) Saluto = "Buona notte"
if (Minuti < 10) Minuti = "0" + Minuti
if (Secondi < 10) Secondi = "0" + Secondi
messaggio = Saluto + ", sono le ore " + Ore + ":" + Minuti + "." + Secondi + " di " + nomeGiorno[Data.getDay()] + ", " + Giorno + " " + mesi[Mese] + " " + Anno
if(!document.layers){
  aggsec = setTimeout("aggiorna();",1000);}
if (document.getElementById){
    document.getElementById('clock').innerHTML=messaggio;}
else if (document.all){ 
    document.all.clock.innerHTML=messaggio;}
else if(document.layers){
    document.write(messaggio);}
}
aggiorna();
//-->
</script>
<br />
<br />
</font></big></big></big>
<br />
<br />
<br />
<br />
<a href="fotop/perchè%20volontario.pdf">
<img style="border: 0" id="img1" src="fotop/buttonD.gif" height="70" width="350" alt="perchè volontario ?" onmouseover="FP_swapImg(1,0,/*id*/'img1',/*url*/'fotop/buttonA.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img1',/*url*/'fotop/buttonD.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img1',/*url*/'fotop/buttonB.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img1',/*url*/'fotop/buttonA.gif')" /><!-- MSComment="ibutton" fp-style="fp-btn: Embossed Rectangle 2; fp-font: Wide Latin; fp-font-color-normal: #008000; fp-font-color-hover: #0000FF; fp-font-color-press: #FF0000; fp-transparent: 1" fp-title="perchè volontario ?" --></a><br />
<br />
<br />
<br />
<br />
<a href="fotop/INVITO%20AGLI%20ASPIRANTI%20VOLONTARI%20MANIFESTO.pdf">
<img style="border: 0" id="img17" src="fotop/button5Y.gif" height="70" width="350" alt="aspirante volontario....." onmouseover="FP_swapImg(1,0,/*id*/'img17',/*url*/'fotop/button5W.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img17',/*url*/'fotop/button5Y.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img17',/*url*/'fotop/button5K.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img17',/*url*/'fotop/button5W.gif')" /><!-- MSComment="ibutton" fp-style="fp-btn: Embossed Rectangle 3; fp-font: Wide Latin; fp-font-color-normal: #800000; fp-font-color-hover: #FF0000; fp-font-color-press: #FF00FF; fp-transparent: 1" fp-title="aspirante volontario....." --></a><br />
<br />
<br />
<br />
<br />
<a href="fotop/CARISSIMI%20AMICI.pdf">
<img style="border: 0" id="img14" src="fotop/button1C.gif" height="70" width="350" alt="il libro di ....." onmouseover="FP_swapImg(1,0,/*id*/'img14',/*url*/'fotop/button1D.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img14',/*url*/'fotop/button1C.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img14',/*url*/'fotop/button1E.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img14',/*url*/'fotop/button1D.gif')" /><!-- MSComment="ibutton" fp-style="fp-btn: Embossed Rectangle 5; fp-font: Wide Latin; fp-font-size: 9; fp-font-color-hover: #FF0000; fp-font-color-press: #FF00FF; fp-transparent: 1" fp-title="il libro di ....." --></a><br />
<tr>
<td colspan="2" class="style2"><span
              style="font-style: italic; font-family: monospace; color: #000099; font-weight: bold;">Copyright
              2011 AVC-Onlus&nbsp; - C.F. 97686040011 -&nbsp; All rights
              reserved - <span style="text-align: center; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2;">
                Sito realizzato da PL16</span></span><span class="style6"> 
</span></td>
</tr></td></tr>
</table>
</body>
</html>

mentre se ti serve la pagina loghin completa non protetta è:
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ASSOCIAZIONE&nbsp; VOLONTARIATO&nbsp; COTT</title>
<style type="text/css">
.style1 {
text-align: center;
}
.style2 {
border: 1px solid #D3D3D3;
text-align: center;
background-color: #CCFFFF;
}
.style3 {
border-width: 0;
background-color: #CCFFFF;
}
.style4 {
background-color: #FFFFCC;
}
.style5 {
border: 1px solid #D3D3D3;
background-color: #FFFFFF;
}
.style6 {
border: 1px solid #D3D3D3;
}
.style7 {
font-family: Castellar;
color: #0000FF;
font-weight: normal;
}
.style8 {
font-family: Castellar;
color: #0000FF;
font-weight: normal;
font-size: xx-large;
}
.style54 {
color: rgb(255, 0, 0);
font-size: large;
}
.style28 {
font-size: medium;
}
.style55 {
font-size: large;
}
.style56 {
background-color: #FF0000;
}
.style57 {
background-color: #00FFFF;
}
</style>
<script type="text/javascript">
<!--
function FP_swapImg() {//v1.0
 var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
 n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
 elm.$src=elm.src; elm.src=args[n+1]; } }
}
function FP_preloadImgs() {//v1.0
 var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
 for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}
function FP_getObjectByID(id,o) {//v1.0
 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
 else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
 if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
 for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
 for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
 return null;
}
// -->
</script>
</head>
<body onload="FP_preloadImgs(/*url*/'fotop/buttonC8.gif',/*url*/'fotop/buttonC9.gif',/*url*/'fotop/buttonCB.gif',/*url*/'fotop/buttonCC.gif',/*url*/'fotop/buttonCE.gif',/*url*/'fotop/buttonCF.gif',/*url*/'fotop/buttonD1.gif',/*url*/'fotop/buttonD2.gif',/*url*/'fotop/buttonD4.gif',/*url*/'fotop/buttonD5.gif',/*url*/'fotop/buttonD7.gif',/*url*/'fotop/buttonD8.gif',/*url*/'fotop/buttonDA.gif',/*url*/'fotop/buttonDB.gif',/*url*/'fotop/buttonDD.gif',/*url*/'fotop/buttonDE.gif')">
<table style="width: 100%" class="style6">
				<tbody class="style1">
				<tr>
								<td style="width: 171px" class="style5">
								<img
              title="logo" alt="logo" src="fotop/img8.gif" width="170" height="153" class="style6"/></td>
<td class="style2">
            <h1 class="style7">associazione&nbsp; volontariato&nbsp; 
cottolenghino</h1>
<p class="style8">avc&nbsp; -&nbsp; onlus</p>
          						</td>
</tr>
<tr>
<td style="width: 171px" class="style6">
            <table style="width: 155px; height: 605px;" border="0">
              <tbody>
                <tr>
                  <td style="width: 217px" class="style3">
<div class="style6">
<br />
<a href="../index.html">
<img style="border: 0" id="img18" src="fotop/buttonC7.gif" height="28" width="140" alt="Home Page" onmouseover="FP_swapImg(1,0,/*id*/'img18',/*url*/'fotop/buttonC8.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img18',/*url*/'fotop/buttonC7.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img18',/*url*/'fotop/buttonC9.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img18',/*url*/'fotop/buttonC8.gif')" /><!-- MSComment="ibutton" fp-style="fp-btn: Metal Capsule 4; fp-font: Wide Latin; fp-font-size: 8; fp-font-color-normal: #0000FF; fp-font-color-hover: #0000FF; fp-font-color-press: #0000FF; fp-transparent: 1" fp-title="Home Page" --></a><br />
<br />
<a href="chi%20siamo.html">
<img style="border: 0" id="img19" src="fotop/buttonCA.gif" height="28" width="140" alt="chi siamo" onmouseover="FP_swapImg(1,0,/*id*/'img19',/*url*/'fotop/buttonCB.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img19',/*url*/'fotop/buttonCA.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img19',/*url*/'fotop/buttonCC.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img19',/*url*/'fotop/buttonCB.gif')" /><!-- MSComment="ibutton" fp-style="fp-btn: Metal Capsule 4; fp-font: Wide Latin; fp-font-size: 8; fp-font-color-normal: #0000FF; fp-font-color-hover: #0000FF; fp-font-color-press: #0000FF; fp-transparent: 1" fp-title="chi siamo" --></a><br />
<br />
<a href="dove%20operiamo.html">
<img style="border: 0" id="img22" src="fotop/buttonCD.gif" height="28" width="140" alt="dove operiamo" onmouseover="FP_swapImg(1,0,/*id*/'img22',/*url*/'fotop/buttonCE.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img22',/*url*/'fotop/buttonCD.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img22',/*url*/'fotop/buttonCF.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img22',/*url*/'fotop/buttonCE.gif')" /><!-- MSComment="ibutton" fp-style="fp-btn: Metal Capsule 4; fp-font: Wide Latin; fp-font-size: 6.5; fp-font-color-normal: #0000FF; fp-font-color-hover: #0000FF; fp-font-color-press: #0000FF; fp-transparent: 1" fp-title="dove operiamo" --></a><br />
<br />
<a href="le%20attività.html">
<img style="border: 0" id="img20" src="fotop/buttonD0.gif" height="28" width="140" alt="le attività" onmouseover="FP_swapImg(1,0,/*id*/'img20',/*url*/'fotop/buttonD1.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img20',/*url*/'fotop/buttonD0.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img20',/*url*/'fotop/buttonD2.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img20',/*url*/'fotop/buttonD1.gif')" /><!-- MSComment="ibutton" fp-style="fp-btn: Metal Capsule 4; fp-font: Wide Latin; fp-font-size: 8; fp-font-color-normal: #0000FF; fp-font-color-hover: #0000FF; fp-font-color-press: #0000FF; fp-transparent: 1" fp-title="le attività" --></a><br />
<br />
<a href="eventi.html">
<img style="border: 0" id="img21" src="fotop/buttonD3.gif" height="28" width="140" alt="eventi" onmouseover="FP_swapImg(1,0,/*id*/'img21',/*url*/'fotop/buttonD4.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img21',/*url*/'fotop/buttonD3.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img21',/*url*/'fotop/buttonD5.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img21',/*url*/'fotop/buttonD4.gif')" /><!-- MSComment="ibutton" fp-style="fp-btn: Metal Capsule 4; fp-font: Wide Latin; fp-font-size: 8; fp-font-color-normal: #0000FF; fp-font-color-hover: #0000FF; fp-font-color-press: #0000FF; fp-transparent: 1" fp-title="eventi" --></a><br />
<br />
<a href="documenti.html">
<img style="border: 0" id="img23" src="fotop/buttonD6.gif" height="28" width="140" alt="documenti" onmouseover="FP_swapImg(1,0,/*id*/'img23',/*url*/'fotop/buttonD7.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img23',/*url*/'fotop/buttonD6.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img23',/*url*/'fotop/buttonD8.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img23',/*url*/'fotop/buttonD7.gif')" /><!-- MSComment="ibutton" fp-style="fp-btn: Metal Capsule 4; fp-font: Wide Latin; fp-font-size: 8; fp-font-color-normal: #0000FF; fp-font-color-hover: #0000FF; fp-font-color-press: #0000FF; fp-transparent: 1" fp-title="documenti" --></a><br />
<br />
<a href="contatti%20e%20link.html">
<img style="border: 0" id="img24" src="fotop/buttonD9.gif" height="28" width="140" alt="contatti e link" onmouseover="FP_swapImg(1,0,/*id*/'img24',/*url*/'fotop/buttonDA.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img24',/*url*/'fotop/buttonD9.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img24',/*url*/'fotop/buttonDB.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img24',/*url*/'fotop/buttonDA.gif')" /><!-- MSComment="ibutton" fp-style="fp-btn: Metal Capsule 4; fp-font: Wide Latin; fp-font-size: 6.5; fp-font-color-normal: #0000FF; fp-font-color-hover: #0000FF; fp-font-color-press: #0000FF; fp-transparent: 1" fp-title="contatti e link" --></a><br />
<br />
<a href="login.html">
<img style="border: 0" id="img25" src="fotop/buttonDC.gif" height="28" width="140" alt="Riservato" onmouseover="FP_swapImg(1,0,/*id*/'img25',/*url*/'fotop/buttonDD.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img25',/*url*/'fotop/buttonDC.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img25',/*url*/'fotop/buttonDE.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img25',/*url*/'fotop/buttonDD.gif')" /><!-- MSComment="ibutton" fp-style="fp-btn: Metal Capsule 4; fp-font: Wide Latin; fp-font-size: 8; fp-font-color-normal: #0000FF; fp-font-color-hover: #0000FF; fp-font-color-press: #0000FF; fp-transparent: 1" fp-title="Riservato" --></a><br />
<br />
</div>
</td>
                </tr>
                <tr>
                  <td style="width: 217px; height: 605px; " class="style4" valign="top">
&nbsp;</td>
                </tr>
              </tbody>
            </table>
            </td>
<td class="style6" valign="top">
<h1>&nbsp;</h1>
<p>&nbsp;</p>
<p>
<strong>
<span class="style54">Autenticazione 
Volontari</span><em><span class="style55"><br />
                    </span></em></strong></p>
<p>
<strong>
<em><span class="style28">
<br />
UserID:</span></em></strong><span class="style28"> <em>&nbsp;Inserire Cognome 
e
Nome</em></span></p>
<p>
<span class="style28"> <br />
<strong><em>Password:</em></strong>&nbsp;
                    </span><em><span class="style28"> Inserire il numero di 
tessera su quattro cifre esempio :
                        tessera n° <strong>1</strong> = <strong>0001<br />
</strong></span></em>&nbsp;&nbsp;</p>
<form name="frmLogin" method="post" action="Login.asp">
<table style="width: 150px;" class="style1" align="center">
<tbody>
<tr>
<td style="width: 265px;" class="style56">UserID:<br />
<input name="txtUserID" style="width: 190px;" type="UserID" /><br />
&nbsp;</td>
</tr>
<tr>
<td style="width: 265px;" class="style56">
Password:
<input name="txtPassword" maxlength="4" style="width: 187px;" type="Password" />
</td>
</tr>
<tr>
<td style="width: 265px;" class="style57">
<input name="Submit" value="Invia" style="width: 91px;" type="submit" />
</td>
</tr>
</tbody></table>
<br />
</form></td>
<p>
&nbsp;</p>
<p></p>
            </tr>
<tr>
<td colspan="2" class="style2"/><span
              style="font-style: italic; font-family: monospace; color: #000099; font-weight: bold;">Copyright
              2011 AVC-Onlus&nbsp; - C.F. 97686040011 -&nbsp; All rights
              reserved - <span style="text-align: center; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2;">
                Sito realizzato da PL16</span></span><span class="style6"> 
</span>
</tr>
</tbody></table>
</body>
</html>
 
problemi rilevati:

pagina login:
Codice:
<form name="frmLogin" method="post" action="Login.asp">
<table style="width: 150px;" class="style1" align="center">
<tbody>
<tr>
<td style="width: 265px;" class="style56">UserID:<br />
<input name="[COLOR="#FF0000"]txtUserID[/COLOR]" style="width: 190px;" type="UserID" /><br />
&nbsp;</td>
</tr>
<tr>
<td style="width: 265px;" class="style56">
Password:
<input name="[COLOR="#FF0000"]txtPassword[/COLOR]" maxlength="4" style="width: 187px;" type="Password" />
</td>
</tr>
<tr>
<td style="width: 265px;" class="style57">
<input name="Submit" value="Invia" style="width: 91px;" type="submit" />
</td>
</tr>
</tbody></table>
<br />
</form>

il nome dei due input sono diversi da quelli presenti nella pagina logon.asp

Codice:
UserID = Replace(Request.Form("[COLOR="#FF0000"]UserID[/COLOR]"), "'", "''")
Password = Replace(Request.Form("[COLOR="#FF0000"]Password[/COLOR]"), "'", "''")

Modificando i nomi, sulle prove fatte in locale, mi funziona...
 

Discussioni simili