Slick Little Tell-A-Friend Feature
<cfif isDefined('form.tella')>
    <html>
    <meta http-equiv=
"REFRESH" content="4; url=http://www.yoursite.com">
    <body>
        <cfmail to="#form.tella#" from="info@yoursite.com" subject="A friend wants you to check out YOUR SITE HERE" server="mail.yoursite.com">
            Someone you know has visited YourSite.com and requested we send you an email regarding...

            Check it out today!

            <a href="http://www.yoursite.com">YourSite.com</a>

            Thanks for your time!

            Person's Name
            www.YourSite.com

        </cfmail>

        Your friend has been emailed. Thanks for spreading the word about YourSite.com!<br><br>
        You'll be directed back to YourSite momentarily. Or, you can click below now.<br><br>
        <a href="http://www.yoursite.com">Back to Home page</a>
    </body>
    </html>
<cfelse>
    <table border="0" cellpadding="0" cellspacing="0" width="94%">
    <form name="frmTellaFriend" action="tellafriend.cfm" method="post">
        <tr>
            <td colspan=
"2" align="left">Tell a Friend About YourSite:</td>
        </tr>
        <tr>
            <td align=
"left"><input type="text" name="tella" size="10" value="Email Address" onFocus="document.frmTellaFriend.tella.value = '';"></td>
            <td align=
"left"><input type="image" name="btngo" value="Search" src="../assets/graph/send.gif" width="37" height="21" border="0" alt="Send Email"></td>
        </tr>

    </form>

    </table>
</cfif>



All ColdFusion Tutorials By Author: Ryan BeMiller
  • Create dynamic PDFs on the fly, and email them too
    Create dynamic PDF's on the fly and automatically send them as attachments. There are a bunch of people out there that claim to have this elusive process figured out, or to have a wonder-tag that does it all for you. Well, I tried a lot of them, and the results were always less than desirable, if you want to call them results. However, through this trial and error, I was able to take the good points of some of these failed attempts, and piece them together into a working solution. Right off the bat, this is a solution for those of you who have the ability to install software on your own hosting server or, those of you who can convince your web host to install a little harmless application for you.
    Author: Ryan BeMiller
    Views: 22,914
    Posted Date: Sunday, May 25, 2003
  • Display random images each time a page loads or is refreshed
    This tutorial will show you how easy it is to display an unlimited number of images randomly on your pages. Each time a page is loaded or refreshed a random image will load.
    Author: Ryan BeMiller
    Views: 18,607
    Posted Date: Tuesday, April 22, 2003
  • Slick Little Tell-A-Friend Feature
    Add this one page tell-a-friend file to your website and begin letting your visitors promote your site for you. Very easy to set up. Can be cfincluded anywhere on your site. Visitors just fill in their friends email address and click the send button. The rest is taken care of. Simple one click functionality for your visitors. Automatically sends an email, containing anything you wish, to your visitors friend.
    Author: Ryan BeMiller
    Views: 8,993
    Posted Date: Thursday, January 13, 2005
  • The Easiest Method for "Previous | Next" Recordset Navigation (aka - Recordset Paging)
    This tutorial provides a simple and quick way for CFers to add Recordset Navigation to their websites. This is the easiest way I could come up with to accomplish the "Previous Page | Next Page" kind of navigation that is needed by so many, yet understood by so few.
    Author: Ryan BeMiller
    Views: 13,919
    Posted Date: Wednesday, September 15, 2004