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="[email protected]"
FROM= "[email protected]"
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= "[email protected]"
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: [email protected]
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:"[email protected]">[email protected]</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
-
Required Every quarter data from sql automatically in below sql format
by jain.piyush831 (0 replies)
-
Is Your Data is Lost? Learn Online How TO Recover Your Data.
by dataempires (0 replies)
-
Executing a command line SELECT
by cyoung311 (0 replies)
-
Softaken Mac OLM to PST Migration Software
by albertcolin012 (0 replies)
-
MAX value of each column - HELP
by triparipr (0 replies)
ColdFusion podcasts
-
webdev radio: Listener feedback
Published 8 years ago, running time 0h30m
We’ve got some great listener contributions this episode covering ColdFusion and PHP, as well as a heads up on some upcoming interviews. Also mentioned: Zend Framework and Reveal Firefox extension. *Reveal Firefox extension :: Great firefox extension for previewing and searching opened tabs.
Comments