%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>

<%if (Request("mode")!= "SEND"){%> INSERT YOUR COMMENT
<%}else{ var szName = Request("name"); var szEmail = Request("email"); var szDay1 = Request("dc1"); var szDay2 = Request("dc2"); var szBody = Request("note"); var szGiudizio = Request("giudizio"); var szCome = Request("come"); var szText = ""; szText += "E' stato inserito un nuovo commento al sito vai su http:\\\\www.ilcastelletto.com\\cast_admin\n\r"; //*** Apre connessione al DB tmpDb = OpenDb(); szExec = "INSERT INTO Comment("; szExec += "CmtNome,Cmtemail,CmtGiudizio,CmtBody,CmtDatada,CmtDataa,CmtCome,CmtVisible) values "; szExec += "("; szExec += "'"+HandleSqlString(szName)+"'," ; szExec += "'"+HandleSqlString(szEmail)+"'," ; szExec += szGiudizio+"," szExec += "'"+NormalizeHTML(szBody)+"'," ; szExec += "'"+szDay1 +"'," ; szExec += "'"+szDay2 +"'," ; szExec += "'" + szCome +"'," ; szExec += "0 )"; tmpDb.Execute(szExec); CloseDb(tmpDb); SendMail(szEmail, "hotel@ilcastelletto.com","nuovo commento dal sito www.ilcastelletto.com",szText); //szOut += "Grazie. Il tuo commento é stato inviato con successo, a breve sará pubblicato.I authorize the use of my personal data in compliance with the Italian law 675/96(*)
The data collected here are used solely to meet the needs of the requested service. This information may be used only by the personnel responsible for this activity and only divulged within the scope and purposes of the service provided.