il mio problema è il seguente.
ho una pagina form dati, nome cognome etc etc, una volta premuto send invia il tutto nella mia email, questo è stato realizzato con cdonts. vorrei che l'utente possa inserire oltre che il nome, etc etc anche un immagine uploadandola dal proprio pc.
cosa devo aggiungere al classico script?
<title>........</title>
<form method="post" name="frmEnquiry" action="output.asp" onSubmit="return CheckForm();">
<div align="center">
<p>
<input type="hidden" name="sendto" value="my@my.com">
<input type="hidden" name="sendtocc" value="my@my.com">
</p>
<p><img src=".mrter.gif" width="355" height="29"> </p>
</div>
<table width="450" border="0" align="center" cellpadding="0" cellspacing="0" >
<!-- First tabe row -->
<tr>
<td colspan="2" width="448"> <font size="2"><b>*Indicates required fields
</b></font>
</tr>
<!-- second table row -->
<tr>
<td width="289">First Name* <br>
<input maxlength="30" name="firstName">
</td>
<!-- Coloum two in the second table row -->
<td width="157">Last Name* <br>
<input maxlength="30" name="lastName">
</td>
</tr>
<!-- Third table row spread over 3 coloumns -->
<tr>
<td width="291">Address<br>
<input name="indirizzo" type="text" id="indirizzo"> </td>
<td width="159"> </td>
</tr>
<!-- Forth table row -->
<tr>
<!-- Coloum two in the forth table row -->
</tr>
<!-- Fifth table row spread over 3 coloumns -->
<!-- Sixth table row spread over 3 coloumns with a drop down list to select the country -->
<!-- Seventh row table -->
<tr>
<td width="289">Phone Number <font size="1">(INCLUDE AREA CODE)</font> <br>
<input maxlength="30" name="tel">
<!-- Coloumn 2 in row seven -->
</td>
<td width="157">E-mail Address* <br>
<input maxlength="255" name="email">
</td>
</tr>
<!-- Eigth row in table containing the enquiry text box -->
<td colspan="2" height="170" width="448"><div align="center">Enquiry* <br>
<textarea name="Enquiry" cols="50" rows="5" id="richiesta"></textarea>
</div></td>
<!-- Ninth row in the table -->
<tr align="center">
<td colspan="2" height="36" width="448"><div align="center"></div></td>
</tr>
<tr align="center">
<td colspan="2" height="36" width="448">
<input type="submit" name="Submit3" value="Submit Enquiry">
<input type="reset" name="Reset" value="Clear Form">
</td>
</tr>
</table>
</form>
e questo in output
<title></title>
<%
Response.Buffer = True
Dim strBody
Dim objCDOMail
Dim strMyEmailAddress
Dim strCCEmailAddress
Dim strBCCEmailAddress
Dim strReturnEmailAddress
strMyEmailAddress = "my@my.com"
strCCEmailAddress = "my@my.com"
strBCCEmailAddress = ""
strReturnEmailAddress = Request.Form("email")
strBody = "<h2>E-mail sent from form on Web Site</h2>"
strBody = strBody & "<br><b>Name: </b>" & Request.Form("firstName") & " " & Request.Form("lastName")
strBody = strBody & "<br><br><b>Address: -</b>"
If (Request.Form("street1")) > "" Then
strBody = strBody & "<br> " & Request.Form("street1")
End If
If (Request.Form("street2")) > "" Then
strBody = strBody & "<br> " & Request.Form("street2")
End If
If (Request.Form("town")) > "" Then
strBody = strBody & "<br> " & Request.Form("town")
End If
If (Request.Form("county")) > "" Then
strBody = strBody & "<br> " & Request.Form("county")
End If
If (Request.Form("country")) > "--- Choose One ---" Then
strBody = strBody & "<br> " & Request.Form("country")
End IF
If (Request.Form("postCode")) > "" Then
strBody = strBody & "<br> " & Request.Form("postCode")
End If
strBody = strBody & "<br><br><b>Telephone: </b>" & Request.Form("tel")
strBody = strBody & "<br><b>E-mail: </b>" & strReturnEmailAddress
strBody = strBody & "<br><br><b>Enquiry: - </b><br>" & Replace(Request.Form("enquiry"), vbCrLf, "<br>")
If Len(strReturnEmailAddress) < 5 OR NOT Instr(1, strReturnEmailAddress, " ") = 0 OR InStr(1, strReturnEmailAddress, "@", 1) < 2 OR InStrRev(strReturnEmailAddress, ".") < InStr(1, strReturnEmailAddress, "@", 1) Then
strReturnEmailAddress = strMyEmailAddress
End If
Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.From = Request.Form("firstName") & " " & Request.Form("lastName") & " <" & strReturnEmailAddress & ">"
objCDOMail.To = strMyEmailAddress
objCDOMail.Cc = strCCEmailAddress
objCDOMail.Bcc = strBCCEmailAddress
objCDOMail.Subject = "Enquiry sent from enquiry form on website"
objCDOMail.BodyFormat = 0
objCDOMail.MailFormat = 0
objCDOMail.Body = strBody
objCDOMail.Importance = 2
objCDOMail.Send
Set objCDOMail = Nothing
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html>
<head>
<title>Win - Hosting :: Windows 2000 Hosting</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="description" content="a1 Win-Hosting is a leading Windows 2000 hosting provider. The latest scripting technology ( ASP Perl WAP WML XML. Unlimited Bandwidth, Unlimited space, Domain registration, Control Panel, Frontpage 2000, etc.">
<meta name="keywords" content="WINDOWS 2000 HOSTING,WINDOWS 2000 WEB HOSTING,WINDOWS 2000 WEBHOSTING,W2K HOSTING,UNLIMITED BANDWIDTH,UNLIMITED SPACE,UNLIMITED TRANSFER,LOW COST WINDOWS 2000 HOSTING,ASP HOSTING,WINDOWS 2000 HOSTING,WINDOWS 2000 WEBHOSTING,ASP COMPONENTS,UNLIMITED EMAIL ACCOUNTS,JMAIL HOSTING,ASPUPLOAD HOSTING,LOW COST HOSTING,DOMAIN REGISTRATION,UNLIMITED DOMAIN ALIAS">
<style>
.forms {COLOR:#003366; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica, Arial; FONT-SIZE:12px;}
.text {FONT-FAMILY: Verdana, Helvetica, Arial; FONT-SIZE:12px;)
BODY {font-family:verdana,arial,helvetica;font-size:10pt;}
TABLE {font-family:verdana,arial,helvetica;font-size:10pt;}
A {color:#336699;font-size:10pt;font-family:verdana,arial,helvetica;}
A:Active {color:#d00000;}
A:hover {color:#d00000;}
TD.nav1 {color:#000000 ;font-size:8pt;font-family:verdana,arial,helvetica;font-weight:bold;}
TD.nav1 A {color:#ffffff ;font-size:8pt;font-family:verdana,arial,helvetica;font-weight:bold;}
TD.nav1 A:Active {color:#99cc33;}
TD.nav1 A:hover {color:#99cc33;}
TD.nav2 {color:#f7f7f7;font-size:10pt;font-family:verdana,arial,helvetica;}
TD.nav2 A {color:#ffffff;font-size:10pt;font-family:verdana,arial,helvetica;font-weight:bold;text-decoration:none;}
TD.nav2 A:Active {color:#ff9900;}
TD.nav2 A:hover {color:#99ccff;}
TD.nav3 {color:#f7f7f7;font-size:10pt;font-family:verdana,arial,helvetica;}
TD.nav3 A {color:#ffffff;font-size:10pt;font-family:verdana,arial,helvetica;font-weight:bold;text-decoration:none;}
TD.nav3 A:Active (color:#000000;}
TD.nav3 A:Hover (color:#99ccff;}
-->
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#FFFFFF" >
<table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<p>Thank-you
<% = Request.Form("firstName") %>
<% = Request.Form("lastName") %>
for filling in the form. <br>
</p>
<p>We will reply soon</p>
<p><a href="../../index.htm">back</a></p>
</td>
</tr>
</table>
</body>
</html>