Salve,
ho un piccolo motore di ricerca interno ma, purtropo, non funziona.

Qualucuno di buona volontà può spiegaremi il problema?

<%
var cerca = new String(Request.QueryString("cerca"));
var testo = new String(Request.Form("stringa"));
var apice = testo.replace(/'/g,"''");
var stringa = apice.split(" ");
if (cerca == "OK")
{
_____ if (testo == "" || testo == "undefined")
_____ {
_________ Response.Write("

Inserire almeno una parola per effettuare una rcerca</p>);
_____ }
else
{
var Cn = new ActiveXObject("ADODB.Connection");
____ Cn.Open("driver={Microsoft Access Driver (*.mdb)};dbq=" + server.mappath("/mdb-database/database.mdb")

var sql = "SELECT * FROM giuris WHERE";
for (var i=0; i<stringa.length; i++)
{
if (i > 0)
{
__ sql += " AND";
}
sql += " descrizione LIKE '%" + stringa[i] + "%'";
}
var Mostra = Cn.Execute(sql);
if (Mostra.EOF)
{
____ Response.Write("

Nessun risultato</p>");
____ }
_____ else
{
________ while (!Mostra.EOF)
{
____________ with (Response)___________________
{
______________ Write("

");
Write("" +Mostra("titolo") + "
");_______________________
Write(Mostra("descrizione"));_____________________ __
Write("</p>");
Mostra.MoveNext();
}
___ __}___________
}
___________ Cn.Close();
}
_ }
%>