Julia.cfm
<html>
<head>
<STYLE TYPE="text/css">
body{color: white; background-color: #336600; font-size: 14pt}
TD{font-size: 12pt;font-weight:bolder;}
h1{color: white; text-align:center;}
</style>
<title>Julia Computer Consulting ColdFusion Form</title>
</head>
<br><h1>JULIA COMPUTER CONSULTING</h1>
<br><br>
Fill out this form as completely as possible. You will be answered soon
by email.<br>
<br>
<div align="center">
<center>
<CFFORM METHOD="POST" action="formmail.cfm">
<table border="1" cellpadding="0" cellspacing="0" width="100%" bordercolor="#336600">
<tr>
<td width="36%"><b><i>Organization:</i></b></td>
<td width="64%"><cfinput type="text" name=Org size=50></td>
</tr>
<tr>
<td width="36%"></td>
<td width="64%"></td>
</tr>
<tr>
<td width="36%"><b><i>Email:</i></b></td>
<td width="64%"> <cfinput type=text name=Email size=20 Required="Yes"
Message="Please enter email.">
</td>
</tr>
<tr>
<td width="36%"><b><i>Your URL:</i></b></td>
<td width="64%"> <cfinput type=text name=Email2 size=20>
</td>
</tr>
<tr>
<td width="36%"></td>
<td width="64%"></td>
</tr>
<tr>
<td width="36%"><b><i>Name:</i></b></td>
<td width="64%"><cfinput type=text name=FullName size=50 REQUIRED="YES"
MESSAGE="Please enter Complete Name.">
</td>
</tr>
<tr>
<td width="36%"></td>
<td width="64%"></td>
</tr>
<tr>
<td width="36%"><b><i>Address:</i></b></td>
<td width="64%"><cfinput type=text name=Address size=50></td>
</tr>
<tr>
<td width="36%"></td>
<td width="64%"></td>
</tr>
<tr>
<td width="36%"><b><i>City/Town:</i></b></td>
<td width="64%"><cfinput type=text name=City size=30></td>
</tr>
<tr>
<td width="36%"></td>
<td width="64%"></td>
</tr>
<tr>
<td width="36%"><b><i>State:</i></b></td>
<td width="64%"><cfinput type=text name=State size=10></td>
</tr>
<tr>
<td width="36%"></td>
<td width="64%"></td>
</tr>
<tr>
<td width="36%"><b><i>Postal Code:</i></b></td>
<td width="64%"><cfinput type=text name=ZipCode size=15></td>
</tr>
<tr>
<td width="36%"></td>
<td width="64%"></td>
</tr>
<tr>
<td width="36%"><b><i>Home Phone:</i></b></td>
<td width="64%"><cfinput type=text name=HomePhone size=13></td>
</tr>
<tr>
<td width="36%"></td>
<td width="64%"></td>
</tr>
<tr>
<td width="36%"><b><i>Work Phone:</i></b></td>
<td width="64%"><cfinput type=text name=WorkPhone size=13></td>
</tr>
<tr>
<td width="36%"></td>
<td width="64%"></td>
</tr>
<tr>
<td width="36%"><b><i>Describe the type of programming service
you would
like:</i></b></td>
<td width="64%">
<p><textarea rows="2" name="Comments" cols="60"></textarea>
</table>
<br>
<input type="submit" value="Submit"><input type="reset" value="Reset"></p>
</cfform>
</body>
</html>
formmail.cfm
<html>
<head>
<title>Requesting Information Results Page in ColdFusion</title>
<STYLE TYPE="text/css">
body { margin-left: .25in; margin-right: .25in; color: green; font-size: 14pt;
background-color:white;}
A:visited {color:white}
A:hover {color:white}
A:active {color:white}
A:mailto {color:white}
</STYLE>
</head>
<CFMAIL TO= #Form.Email#
CC="julia@juliacomputers.com"
FROM= "julia@juliacomputers.com"
SUBJECT= "Thank you for consulting Julia Computer Consulting! Your Results...">
The results of your form are as follows...
Thank you for choosing JuliaGreen.com. This is just a ColdFusion test package,
but we will be in touch with you soon!
Organization: #Form.Org#
Email: #Form.Email#
Url: #Form.Email2#
Name: #Form.FullName#
Address: #Form.Address#
City/Town: #Form.City#
State/Province: #Form.State#
Postal Code: #Form.ZipCode#
Home Phone: #Form.HomePhone#
Work Phone: #Form.WorkPhone#
Comments: #Form.Comments#
</CFMAIL>
<CFMAIL TO= #Form.Email#
FROM= "julia@juliacomputers.com"
SUBJECT= "Thank you for consulting Julia Computer Consulting!">
Thank you for choosing Julia Computer Consulting.
We offer many services even if they are not offered on your ISP. This
is an example of a ColdFusion form. Its features are simplicity of design,
and database capabilities. Have us link up your website to ours if you
need a form in either ASP or ColdFusion.
Julia Computer Consulting is a sole proprietorship offering services in the areas
of Web Design and Web Database Design and many other areas of computer programming.
Thank you for consulting us! We will be in touch with you soon, but feel free
to call or email at any time."
Julia Green
Julia Computer Consulting
PO Box 279
Watertown MA 02471-0279
Phone: 617-926-3413
Email: julia@juliacomputers.com
http://www.juliagreen.com
</CFMAIL>
<CFOUTPUT>
<br>
The results of your form are as follows submitted on #DateFormat(Now())# #TimeFormat(Now())#
by #Email#:<br><br>
<hr>
Name: #FullName# <BR>
Organization: #Org#<BR>
Email: #Email#<br>
Url: #Email2#<br>
Address:<br>
#Address#<br>
#City# #State# #ZipCode#<br>
Home Phone: #HomePhone#<br>
Work Phone: #WorkPhone#<br>
Comments: #Comments#<br><br>
Please contact:<br><br>
Julia Green<br>
Julia Computer Consulting<br>
PO Box 279<br>
Watertown MA 02471-0279<br>
Phone: 617-926-3413<br>
Email: <a href=mailto:"julia@juliacomputers.com">julia@juliacomputers.com</a><br>
<a href="http://www.juliagreen.com">http://www.juliagreen.com</a><br>
</CFOUTPUT>
Send an email using a ColdFusion form
By Julia Lynne Green, published on 20 Feb 2002
| Filed in
Page 2 of 2
- Introduction
- The Code
The Code
You might also like...
ColdFusion forum discussion
-
Pricing Quote on Software Development
by claretalabs01 (4 replies)
-
About software training for beginner
by sudarshan380 (0 replies)
-
List Tracking Database Software and Barcode Scanning
by S.Juan (0 replies)
-
How to convert varchar to numeric
by rajrprk (0 replies)
-
In And Out Of My Golf Game ?
by pukiy2011 (0 replies)
ColdFusion podcasts
-
webdev radio: Bob Silverberg on ColdFusion, ORM, testing and more
Published 1 year ago, running time 0h57m
I caught up with Bob Silverberg shortly after his ORM presentation at NCDevCon and we rapped on the new CF9 ORM layer, testing and other goodness. Enjoy! *Bob's Blog :: Bob Silverberg's CF blogFile Download (59:19 min / 27 MB
Comments