burger menu icon
WillMaster

WillMaster > LibraryGenerators and Converters

FREE! Coding tips, tricks, and treasures.

Possibilities weekly ezine

Get the weekly email website developers read:

 

Your email address

name@example.com
YES! Send Possibilities every week!

Site Recommend / Tell-a-Friend Form Generator (for Master Form V4)

We'll get to the generation form in a moment.

First, I want to be entirely honest about the possibilities of misuse. And I want to show how Master Form V4 can reduce misuse to near zero.

Now that Master Form V4 has anti-hijacking code and automatic submission prevention code built in, the form can be relatively secure — compared to other form processing software and even software specifically created to handle site recommend forms.

Site recommend / tell-a-friend forms let the form user type a message and have the message sent to any valid email address.

Therein lies the security risk. The form user can type any message s/he wants to type and send it to any email address s/he wants to send it to.

Master Form V4 provides two levels of security addressing those types of risks.

Level One Security —

Level One Security has protection built in to protect from both hijacking and automatic submission.

Form hijacking protection:

Form hijacking occurs when a cracker or spammer perverts your form software and sends email from your server with hundreds or even thousands of email addresses on the Bcc line. In other words, every email the spammer sends from your server is actually delivered to 100's or even 1000's of addresses.

Without anti-hijacking protection, just think how much spam could be sent from your server in even as small amount of time as 5 minutes! (No wonder some hosting companys disable scripts without warning and without notice.)

Master Form V4 has anti-hijacking protection code built right in — always alert, always on.

Automatic form submission protection:

Without automatic submission protection, third-party software can be used to fill in forms and submit them, automatically.

Master Form V4 has automatic submission protection available. To enable automatic submission protection, a certain checkbox in the control panel must be checked.

Level Two Security —

Level Two Security allows you to protect yourself by banning certain words/phrases/email addresses and by banning certain IP addresses.

Banning words/phrases/email addresses:

Any complete or partial words and phrases and email addresses can be banned. Each banned word/phrase/email address can be global ban (applied to all form field) or a specific ban (applied to only a specified form field).

If a ban is flagged, the browser can be redirected to an explanitory page or the software can spawn an intentional Internal Server Error. Your choice.

Banning IP addresses:

IP addresses for banning can be specified individually and in ranges.

If a ban is flagged, the browser can be redirected to an explanitory page or the software can spawn an intentional Internal Server Error. Your choice.

The Recommend My Website Form

Now that you know more about the possibilities of misuse and how Master Form V4 can prevent it, here is the generation form.

[click for visual example site recommend / tell-a-friend form]

Fill in the form below and click the button. The next page will have the code for the site recommend / tell-a-friend form and all necessary email templates.

What is the URL to your MasterFormV4.cgi script?

When the "recommend my website" form is submitted, which URL shall the browser be redirectd to?

Shall the web page at the above URL be personalized? Yes   No

If you wish to suggest a message for the form user to send to the friend, type it here. (The form user would be able to change the message.)

The Recommend My Website Emails

The three emails are sent to:

  • The person using the form.
  • The person's friend.
  • You, the site owner.

In the emails, these placeholders may be used:

This placeholder ... ... will be replaced with:
[[YourName]] The form user's name
[[YourEmail]] The form user's email address
[[FriendsName]] The friend's name
[[FriendsEmail]] The friend's email address
[[Message]] The message the form user is sending to the friend.

If you use the [suggest] links in the sections below, be sure to replace any text sections that begin with "REPLACE_THIS_" with the appropriate information.

The Email Sent To the Person Using the Recommend Form

What name shall the email be sent from?

What email address shall it be sent from?

Specify the subject line for the email. [suggest]

If you want a blind carbon copy (Bcc) of the email, where shall it be sent?

Specify the text of the email sent to the person using the form. [suggest]

The Email Sent To the Form User's Friend

Specify the subject line for the email. [suggest]

If you want a blind carbon copy (Bcc) of the email, where shall it be sent?

Specify the text that shall appear in the email above the message the form user is sending to the friend. [suggest]

Specify the text that shall appear in the email below the message the form user is sending to the friend. [suggest]

The Email Sent To You, the Site Owner

What email address shall yours be sent to?

Specify the subject line for your email. [suggest]

Specify the text of your email. [suggest]

Will Bontrager

Was this article helpful to you?
(anonymous form)

Support This Website

Some of our support is from people like you who see the value of all that's offered for FREE at this website.

"Yes, let me contribute."

Amount (USD):

Tap to Choose
Contribution
Method

All information in WillMaster Library articles is presented AS-IS.

Support Area – Ask Your Question Here

The "Code in articles help" forum at the Willmaster.com support area is the place to get information about implementing JavaScript and other software code found on Willmaster.com

We only suggest and recommend what we believe is of value. As remuneration for the time and research involved to provide quality links, we generally use affiliate links when we can. Whenever we link to something not our own, you should assume they are affiliate links or that we benefit in some way.

Need Custom Software?
Click to
tell us about
your project.

How Can We Help You? balloons
How Can We Help You?
bullet Custom Programming
bullet Ready-Made Software
bullet Technical Support
bullet Possibilities Newsletter
bullet Website "How-To" Info
bullet Useful Information List

© 1998-2001 William and Mari Bontrager
© 2001-2011 Bontrager Connection, LLC
© 2011-2026 Will Bontrager Software LLC