So my one client uses ASP for his website, and recently i used google and a little brain power and got him a working contact form using his smtp. Client has now decided he wants to add a field for the would be customer's name and a field for their phone number. I have modified the form accordingly, but im not sure how to pass the two new variable so that they come out in the message body, above the comments. For example:
John Smith, 555-5555, and hi dude would show as (in email body)
John Smith
555-5555
Hi dude
Form
<!-- CONTACT FORM -->
<script language=javascript src="contactvalid.js"></script>
<FORM name="ContactForm" action="send_email.asp" method=post onSubmit="return validateContact()">
<table border=0>
<tr><td align=right>Name: </td>
<td><input name="FromName" size=40 maxlength=50 class="inputbox"></td></tr>
<tr><td></td></tr>
<tr><td align=right>E-Mail: </td>
<td><input name="FromEmail" size=40 maxlength=50 class="inputbox"></td></tr>
<tr><td></td></tr>
<tr><td align=right>Phone: </td>
<td><input name="FromPhone" size=20 maxlength=20 class="inputbox"></td></tr>
<tr><td></td></tr>
<tr valign=top><td align=right>Comments: </td>
<td><textarea name="Comments" class="inputbox" rows=5 cols=50></textarea></td></tr>
<tr><td><br></td></tr>
<tr><td align=right> </td>
<td><input type=submit class="submitbutton"></td></tr>
<tr><td><br></td></tr>
<tr><td></FORM></td></tr>
</table>
<!----- END DATA ----->
send_email
<%
dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = request("FromEmail")
objMail.Subject = "Website Inquiry"
objmail.To = "management@naplescourtyardinn.com"
objMail.Body = request("Comments")
objMail.Send
Response.redirect ("http://www.naplescourtyardinn.com")
%>