--part1_6b.f450db3.27aa2d86_boundary
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

Hi All,
I'm new to CF can you please take a look at my code and tell me what's wrong 
with it.  Or if you know of a tutorial for this script?

tell.cfm

<form action="mailpage.cfm" method="post">
<cfoutput>
<input type="hidden" value="http://#HTTP_HOST##PATH_INFO#" name="pageToVisit">
</cfoutput>
TELL A FRIEND ABOUT THIS SITE!<br>
Enter the email address of a friend here:<Br>
<input type="text" name="friend_email" maxlength="90"><br>
Enter Your name here, so your friend knows its you:<br>
<input type="text" name="yourName" maxlength="90"><br>
<input type="submit" value="Tell my friend now!">
</form>

========================

mailpage.cfm

<cfif #form.friend_email# IS NOT "">

<cfoutput>
Success!
</cfoutput>

<cfmail to="#form.friend_email#" from="#form.yourname#" subject="Cool website 
I found" type="HTML">

Hey man, its #form.yourName#.
I thought you might want to check out this site I found...here's the link:
<a href="#form.pageToVisit#">#form.pageToVisit#</a>
They have cool info on building a good website.
</cfmail>
<cfelse>
You didn't give us an email address to send to!<br>
Please go back and try again.
</cfif>


Thanks
Mike


--part1_6b.f450db3.27aa2d86_boundary
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

<HTML><FONT FACE=arial,helvetica><FONT  SIZE=2>Hi All,
<BR>I'm new to CF can you please take a look at my code and tell me what's wrong 
<BR>with it. &nbsp;Or if you know of a tutorial for this script?
<BR>
<BR>tell.cfm
<BR>
<BR>&lt;form action="mailpage.cfm" method="post"&gt;
<BR>&lt;cfoutput&gt;
<BR>&lt;input type="hidden" value="http://#HTTP_HOST##PATH_INFO#" 
name="pageToVisit"&gt;
<BR>&lt;/cfoutput&gt;
<BR>TELL A FRIEND ABOUT THIS SITE!&lt;br&gt;
<BR>Enter the email address of a friend here:&lt;Br&gt;
<BR>&lt;input type="text" name="friend_email" maxlength="90"&gt;&lt;br&gt;
<BR>Enter Your name here, so your friend knows its you:&lt;br&gt;
<BR>&lt;input type="text" name="yourName" maxlength="90"&gt;&lt;br&gt;
<BR>&lt;input type="submit" value="Tell my friend now!"&gt;
<BR>&lt;/form&gt;
<BR>
<BR>========================
<BR>
<BR>mailpage.cfm
<BR>
<BR>&lt;cfif #form.friend_email# IS NOT ""&gt;
<BR>
<BR>&lt;cfoutput&gt;
<BR>Success!
<BR>&lt;/cfoutput&gt;
<BR>
<BR>&lt;cfmail to="#form.friend_email#" from="#form.yourname#" subject="Cool website 
<BR>I found" type="HTML"&gt;
<BR>
<BR>Hey man, its #form.yourName#.
<BR>I thought you might want to check out this site I found...here's the link:
<BR>&lt;a href="#form.pageToVisit#"&gt;#form.pageToVisit#&lt;/a&gt;
<BR>They have cool info on building a good website.
<BR>&lt;/cfmail&gt;
<BR>&lt;cfelse&gt;
<BR>You didn't give us an email address to send to!&lt;br&gt;
<BR>Please go back and try again.
<BR>&lt;/cfif&gt;
<BR>
<BR>
<BR>Thanks
<BR>Mike
<BR></FONT></HTML>

--part1_6b.f450db3.27aa2d86_boundary--

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to