PDA

View Full Version : can someone help me with this form


msimonds
07-30-2003, 04:28 PM
I am trying to help someone out and I do not know a thing about coldfusion. I have the following form:

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>

<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive 4">
<title></title>
<meta name="Author" content="if">
<meta name="Description" content="Welcome Pardner! Customer Contact Form">
<meta name="keywords" content="direct mail, direct mail amarillo texas, advertising amarillo texas, weddings, engagements, new baby, relocation, business, amarillo, texas, tx">
</head>

<body>
<center>
<font color="#000066" face="Arial,Helvetica"><b>Contact Form</b></font></center>
<p>
<table border="0" cellspacing="2" cellpadding="3">
<tr>
<td align="right" width="161">
<form action="*.cfm" method="post">
<input type="hidden" name="mailto" value="stubben@amaonline.com"><input type="hidden" name="mailsubject" value="Web Page Response"><font size="2" face="Arial"><b>Last Name</b></font></td>
<td><input type="text" name="LastName" size="35"></td>
</tr>
<tr>
<td align="right" width="161"><font size="2" face="Arial"><b>First Name</b></font></td>
<td><input type="text" name="FirstName" size="35"></td>
</tr>
<tr>
<td align="right" width="161"><font size="2" face="Arial"><b>Address</b></font></td>
<td><input type="text" name="Address" size="35"></td>
</tr>
<tr>
<td width="161">
<div align="right">
<font size="2" face="Arial"><b>Address</b></font></div>
</td>
<td><input type="text" name="Address" size="35"></td>
</tr>
<tr>
<td align="right" width="161"><font size="2" face="Arial"><b>City</b></font></td>
<td><input type="text" name="City" size="20"><font size="2" face="Arial"><b>State&nbsp;<input type="text" name="State" size="3">&nbsp;&nbsp; Zip&nbsp;</b></font><input type="text" name="Zip" size="6"></td>
</tr>
<tr>
<td align="right" width="161"><font size="2" face="Arial"><b>E-Mail Address</b></font></td>
<td><input type="text" name="E_Mail" size="20"></td>
</tr>
<tr>
<td align="right" width="161"><font size="2" face="Arial"><b>Day Phone</b></font></td>
<td><input type="text" name="DayPhone" size="20"></td>
</tr>
<tr>
<td align="right" width="161"><font size="2" face="Arial"><b>Evening Phone</b></font></td>
<td><input type="text" name="EvePhone" size="20"></td>
</tr>
<tr>
<td align="right" width="161"><font size="2" face="Arial"><b>How would you like to be contacted?</b></font></td>
<td><input type="radio" name="Method_Contact" value="Phone" checked><font size="2" face="Arial"><b>Phone&nbsp;<input type="radio" name="Method_Contact" value="Mail">Mail&nbsp;<input type="radio" name="Method_Contact" value="Consultant">In person&nbsp;<input type="radio" name="Method_Contact" value="E_mail">E-Mail</b></font></td>
</tr>
<tr>
<td align="right" width="161"><font size="2" face="Arial"><b>If scheduling an appointment, please select the most convenient time.</b></font></td>
<td><font size="2" face="Arial"><b>Time of Day&nbsp;<select name="Time_Appointment" size="1">
<option value="8:00 am - 10:00 am">8:00 am - 10:00 am&nbsp;
<option value="10:00 am - 12:00 pm">10:00 am - 12:00 pm&nbsp;
<option value="12:00 pm - 2:00 pm">12:00 pm - 2:00 pm&nbsp;
<option value="2:00 pm - 3:00 pm">2:00 pm - 3:00 pm&nbsp;
<option value="3:00 pm - 5:00 pm">3:00 pm - 5:00 pm&nbsp;
<option value="After Hours (no charge)">After Hours (no charge)&nbsp;</font></font></b>
</select></b></font></td>
</tr>
<tr>
<td align="right" width="161"></td>
<td><font size="2" face="Arial"><b>Today's Date (mm/dd/yy)&nbsp;</b></font><input type="text" name="Today's_Date" size="20"></td>
</tr>
<tr>
<td align="right" width="161"><font size="2" face="Arial"><b>Please Include Any Comments or questions :</b></font></td>
<td><textarea rows="5" name="Comments" cols="50"></textarea></td>
</tr>
<tr>
<td align="right" width="161"></td>
<td align="center"><input type="submit" value="Send It !" name="Submit"><input type="reset" value="Start Over" name="Reset"><br>
</form>
</td>
</tr>
</table>
&nbsp;<br>
&nbsp;
</body>

</html>



I was wondering if someone could help me write the coldfusion script to handle this!

This is what I have so far!

<cfmail to="you@yoursite.com" from="#Form.email#"
server="mail.yoursite.com" subject="Contact From yoursite.com">

#Form.firstname# #Form.lastname# is conatacting you from Janitz.com, <P>
Name: #Form.firstname# #Form.lastname# Email: #Form.email# <P>
Body: #Form.body#

</cfmail><P>

<html>

<head>
<title>Yoursite Email Form</title>
</head>


<body>

<cfoutput> Thank you! Below is the information you sent:<br><br>
<P>
Name: #Form.firstname# #Form.lastname#<br>
Email: #Form.email#<br>
<br> Body:
<br> #Form.body#

</cfoutput>

</body>


</html>


I just do not know how to finish this out. I would really appreciate it

God Zilla
08-08-2003, 06:41 PM
I know what you want, and I can do it in ASP for you.
If youŽd like that, contact me: tommy@glanby.se
=)