web design and hosting
features and pricing my account customer support about ICG Link, Inc. contact ICG Link, Inc.

Refer-A-Friend Script
   
 
 
THIS SCRIPT HAS BEEN DISCONTINUED. IF YOU NEED THIS FUNCTIONALITY, PLEASE LET US KNOW AND WE WILL DEVELOP IT FOR YOU. MINIMUM BASIC SETUP

Put this code on the page you wish to refer. Of course, you can replace the submit button with an image as in any form:
<form method=post action="refer-a-friend.pl">
<input type="submit" value="Refer-A-Friend">
</form>
Templates - Create two templates and place them in your /www/data folder:
  • refer-a-friend.html - this template can be made to look exactly like the rest of your web site, except it must have the tag <! form> where the refer-a-friend form will go.
  • refer-a-friend.mail- this is the email template and it can have the following tags in it. With the minimum setup, only url and name mean anything:
    • <! name> This is the name the sender types in the Name box
    • <! url> This is the URL of the page
    • <! title> This is the page title
    • <! message> This is the message the sender added
ENHANCEMENTS

You can add several enhancements to customize the form for your own use. Here is a full blown example of how you might implement the script:
<form method=post action="/cgi-bin/refer-a-friend.pl">
<input type="hidden" name="f_page" value="http://www.icglink.com">
<input type="hidden" name="f_title" value="ICGLink Web Design and Hosting">
<input type="hidden" name="f_number" value="3">
<input type="hidden" name="f_message" value="yes">
<input type="hidden" name="f_subject" value="A Friend wants you to check out ICGLink">
<input type="hidden" name="f_success" value="http://www.icglink.net">
<input type="hidden" name="f_cc" value="you@yourdomain.com">
<input type="hidden" name="f_misc0" value="Phone">
<input type="submit" value="Refer-A-Friend">
</form>
  • f_page: By default, the script uses the referer (the address of the page you put the script call on) to determine the page to refer. If you are using frames or have some other reason for doing so, f_page will override the referer as the page you are recommending.
  • f_title: By default, the page title is not included. The variable f_title sends the title of the page, rather than the url.
  • f_number: By default, the script provides room for one addressee. The variable f_number can be set to either 2 or 3 to add more input boxes to the form for additional addressees.
  • f_message: By default, the script replies with a standard message. The variable f_message turns on the comments box in the form.
  • f_subject: By default, the subject is "Refer-A-Friend Notice". The variable f_subject overrides the default subject with one of your choosing.
  • f_success: By default, the script returns you to the page referred or f_page. Alternatively, you can define f_success as different success page where your visitor will go upon submission.
  • f_cc: You can define this hidden field with an email address where you would like to send a copy (cc) of the referral.
  • f_misc0 - f_misc9: If you need a field that the default script doesn't include, you can define up to ten which will be displayed on the referral form. Use - in the email template to show where to place these values.
For an example using the exact code you see above, you can...

SPECIAL -----111 INSTRUCTIONS

If you wish to use the refer-a-friend script with Build111, Church111 or Agent111 you can do so by adding <input type="hidden" name="f_cms" value="XX" /> where XX is your site ID found in the top right hand corner of your administration area.
ICG Link, Inc. 7003 Chadwick Drive, Suite 111, Brentwood, TN 37027