non riesco a capire dove sbaglio!apparentemente sembrerebbe giusta la sintassi, in posta non arriva niente, che vuol dire?
fatemi sapere plz
grazie mille
![]()
![]()
************************************************** ******************
<html>
<head>
<title> titolo</title>
<link rel="stylesheet" type="text/css" href="../~style/style.css">
<script Language="Javascript">
<!--
function ControllaForm()
{
var controllo=false;
var stringV=""
var stringL=""
var stringE=""
var string=""
var doc=document.info
if (doc.user_email.value == "" ){controllo=true;stringV=stringV+"\n- E-MAIL";}
RE = /^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/
if(RE.test(doc.user_email.value)==false){controllo =true;stringE = stringE + "\n- E-MAIL"; }
if (doc.int_problema.value == "" ){controllo=true;stringV = stringV + "\n- PROBLEMA";}
if (doc.int_problema.value.length > "1040" ){controllo=true;stringL = stringL + "\n- PROBLEMA (max.1040)";}
if (stringV != ""){string = "\nI seguenti campi non sono stati compilati:"+"\n"+stringV;}else{
if (stringL != ""){string = "\nI seguenti campi superano il limite di caratteri\nad essi consentito:"+"\n"+stringL;}else{string = "\nI seguenti campi contengono dati non validi:"+"\n"+stringE;}}
if (controllo){alert("ERRORI RILEVATI NEL FORM:"+"\n"+string+"\n"+"\nCORREGGERLI PER POTER PROSEGUIRE");}else{
var messaggio = window.confirm("INVIARE IL FORM ?"); if (messaggio){info.submit();}}
}
// -->
</script>
</head>
<body>
<%
user_email=request.form("user_email")
problema=request.form("int_problema")
applicazione=request.form("int_appl")
'int_email=request.form("int_email")
if action="send" then
messaggio="La sua e-mail è stata inviata. I nostri tecnici risponderanno appena possibile.
[Indietro]"
if (user_email<>"") AND (problema<>"") AND (applicazione<>"") then
corpo="<html><head><title> MODULO CONTATTACI -</title><style> BODY{background-color: white;font-family: Verdana, Helvetica;font-size: 8pt;}</style></head><body>
E-MAIL GENERATA AUTOMATICAMENTE DA ME
il: "&now()&"
"
corpo=corpo&"USER EMAIL: " &request.form("user_email")&"
"
corpo=corpo&"PROBLEMA: " &request.form("int_problema")&"
"
corpo=corpo&"APPLICAZIONE: " &request.form("int_appl")&"
"
corpo=corpo&"</body></html>"
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = user_email
objMail.To = "myname@mydomain.com"
objMail.Subject = oggetto
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.Body = corpo
objMail.Importance = 1
objMail.Send
Set objMail = Nothing
else
messaggio="Tutti i campi del modulo sono obbligatori. Impossibile inviare la tua e-mail.
Torna indietro e compila tutti i campi.
[Indietro]"
end if
%>
<div align="center"><center>
<table border="0" width="94%">
<tr>
<td width="100%" align="center"><%=messaggio%></td>
</tr>
</table>
</center></div>
<%
else
%>
<form NAME="info" METHOD="post" align="center" action="home.asp?action=send">
<table width="50%" border="0" cellspacing="0" cellpadding="8">
<tr>
<td width="20%">Email</td>
<td width="80%">
<input type="text" name="user_email" value="<%=user_email%>" size="60">
</td>
</tr>
<tr>
<td width="20%">Problema</td>
<td width="80%"><textarea name="int_problema" rows="6" cols="60"><%=int_problema%></textarea></td>
</tr>
<tr>
<td width="20%">Applicazione</td>
<td width="80%">
<select name="int_appl">
<% if session("home_body") = "SW" then%>
<%else%>
<%end if%>
</select>
</td>
</tr>
<tr>
<td width="20%"></td>
<td ALIGN="center" width="80%"><div align="left">
INVIA</td>
</tr>
</table>
</form>
<%end if%>
</body>
</html>

Rispondi quotando