ok...here is the form that I am using.
-------------->
<FORM ACTION="saveinfo.asp" METHOD="post" name="form1">
<table border="0" width="100%" bgcolor="#FFFFFF" cellspacing="0" cellpadding="2">
<tr>
<td width="200" align="right" valign="top"><h5>Name</h5></td>
<td> <input type="text" maxlength="20" size="47" class="form_field" name="Name"></td>
</tr>
<tr>
<td align="right" valign="top"><h4>Address</h4></td>
<td><input type="text" maxlength="20" size="35" class="form_field" name="Name2"></td>
</tr>
<tr>
<td align="right" valign="top"><h4>City</h4></td>
<td align="left" valign="top"><input name="city" type="text" class="form_field" id="city2" size="25" maxlength="20"></td>
</tr>
<tr>
<td align="right" valign="top"><h4>State</h4></td>
<td align="left" valign="top"><input name="State" type="text" class="form_field" id="State4" size="4" maxlength="20"></td>
</tr>
<tr>
<td align="right" valign="top"><h4>zip</h4></td>
<td align="left" valign="top"><input name="zip" type="text" class="form_field" id="zip" size="12" maxlength="20">
</td>
</tr>
<tr>
<td width="200" align="right" valign="top"><h5>Email</h5></td>
<td> <input type="text" maxlength="30" size="35" class="form_field" name="email"></td>
</tr>
<tr>
<td width="200" align="right" valign="top"><h4>Phone (w/ area code)</h4></td>
<td> <input type="text" maxlength="20" size="12" class="form_field" name="phone"></td>
</tr>
<tr>
<td width="200" align="right" valign="top"><h4>Comments/ Requests</h4></td>
<td><textarea name="comment" cols="34" rows="4" class="form_field"></textarea></td>
</tr>
<tr>
<td width="200" align="right" valign="top"></td>
<td><a href="javascript:document.form1.submit()">Submit</a> <a href="javascript:document.form1.reset()">Resets</a></td>
</tr>
</table>
</form>
----------->
and then it is linked to the file saveinfo.asp
----------->
<%
Option Explicit
Dim objNewMail
' First create an instance of NewMail Object
Set objNewMail = Server.CreateObject("CDONTS.NewMail"
' setting up the email
objNewMail.From = request("email"
objNewMail.To = "me.me@verizon.net"
objNewMail.Subject = "Site Visitor Information"
Dim e
Dim strBody
For Each e in Request.Form
strBody = strBody & e & " = " & Request(e) & chr(10)
Next
objNewMail.Body = strBody
objNewMail.Send
' After the Send method, NewMail Object become Invalid
Set objNewMail = Nothing
'Response.Write "Email has been sent"
Response.Redirect("index.asp"
%>
--------------------->
how would I add the option for someone to attach a file from their computer? Possible?
Thanks!!!
-------------->
<FORM ACTION="saveinfo.asp" METHOD="post" name="form1">
<table border="0" width="100%" bgcolor="#FFFFFF" cellspacing="0" cellpadding="2">
<tr>
<td width="200" align="right" valign="top"><h5>Name</h5></td>
<td> <input type="text" maxlength="20" size="47" class="form_field" name="Name"></td>
</tr>
<tr>
<td align="right" valign="top"><h4>Address</h4></td>
<td><input type="text" maxlength="20" size="35" class="form_field" name="Name2"></td>
</tr>
<tr>
<td align="right" valign="top"><h4>City</h4></td>
<td align="left" valign="top"><input name="city" type="text" class="form_field" id="city2" size="25" maxlength="20"></td>
</tr>
<tr>
<td align="right" valign="top"><h4>State</h4></td>
<td align="left" valign="top"><input name="State" type="text" class="form_field" id="State4" size="4" maxlength="20"></td>
</tr>
<tr>
<td align="right" valign="top"><h4>zip</h4></td>
<td align="left" valign="top"><input name="zip" type="text" class="form_field" id="zip" size="12" maxlength="20">
</td>
</tr>
<tr>
<td width="200" align="right" valign="top"><h5>Email</h5></td>
<td> <input type="text" maxlength="30" size="35" class="form_field" name="email"></td>
</tr>
<tr>
<td width="200" align="right" valign="top"><h4>Phone (w/ area code)</h4></td>
<td> <input type="text" maxlength="20" size="12" class="form_field" name="phone"></td>
</tr>
<tr>
<td width="200" align="right" valign="top"><h4>Comments/ Requests</h4></td>
<td><textarea name="comment" cols="34" rows="4" class="form_field"></textarea></td>
</tr>
<tr>
<td width="200" align="right" valign="top"></td>
<td><a href="javascript:document.form1.submit()">Submit</a> <a href="javascript:document.form1.reset()">Resets</a></td>
</tr>
</table>
</form>
----------->
and then it is linked to the file saveinfo.asp
----------->
<%
Option Explicit
Dim objNewMail
' First create an instance of NewMail Object
Set objNewMail = Server.CreateObject("CDONTS.NewMail"
' setting up the email
objNewMail.From = request("email"
objNewMail.To = "me.me@verizon.net"
objNewMail.Subject = "Site Visitor Information"
Dim e
Dim strBody
For Each e in Request.Form
strBody = strBody & e & " = " & Request(e) & chr(10)
Next
objNewMail.Body = strBody
objNewMail.Send
' After the Send method, NewMail Object become Invalid
Set objNewMail = Nothing
'Response.Write "Email has been sent"
Response.Redirect("index.asp"
%>
--------------------->
how would I add the option for someone to attach a file from their computer? Possible?
Thanks!!!