Ciao a tutti,
sto usando il seguente script in un form mail composto da due file :
fform.htm ( il form ) e
finvio.asp ( lo script che processa l'invio del messaggio )
nel form c'è una check box :
...
<form method=post action=finvio.asp>
</p>
<input type="checkbox" name="quadrato">
</p>
From email:
<input type=text name=sender>
To email:
<input type=text name=receiver>
...
che nel file asp viene processata nel seguente modo :
<%
dim cbox
cbox = request.form("quadrato")
if cbox <> "true" then
cbox = "false"
end if
dim testo
if cbox <> "true" then
testo = "la casella è stata flaggata"
else testo = "la casella NON è stata flaggata"
end if
set mail=server.CreateObject("CDONTS.NewMail")
mail.From= Request.form("sender") '
mail.To = Request.form("receiver") '
mail.Subject = Request.form("subject")
mail.Body = testo
mail.BodyFormat = 0 ' 0 = HTML, 1 = Plain
mail.MailFormat = 1 ' 0 = MIME, 1 = Text
mail.Importance = 1 ' 0 =High, 1 = Medium, 2 = Low
' mail.attachFile ("c:\images\mypicture.gif") you can also attach files
mail.Send
set mail=nothing
%>
ma quando invia la mail mi restituisce sempre lo stesso valore della var testo
dov'è che sbaglio ?
grazie a tutti
Marco

Rispondi quotando