Tell a Friend Code
After you copy and paste the code, make sure you change the URL and
website name so you aren't sending your customers to me. Not that I would
mind the business but chances you are promoting something other than
affiliate marketing and the traffic would be useless here. Not to mention
you would be missing out on the traffic intended for your site.
Read these easy instructions:
|
To collect this form, highlight the entire area. Hit ctrl-c to copy the
code. Go to the place on your webpage code that you want to place the code
and hit ctrl-v. Next change the values to your website URL, etc. You can
also change the heading and the information after "Send URL"><br>. That's
it. Now do me a favor and send a friend to
me. Thanks! |
Here is the code:
|
<!-- ********** NOTE - This is submittal form ******* -->
<!-- ********** That you paste into your web page ******* -->
<!-- ********** Then you 'configure' the values shown ******* -->
<h4 align=center>Tell a Friend about our website:</h4>
<form method="POST" action="sendurl.php">
<!-- ************* Configure Section - ************** -->
<!-- ********** You must set these 'values' ********* -->
<!-- Change 'value' to site name - appears in the message to friend
-->
<input type=hidden name="sitename" value="Know It
All Affiliates">
<!-- Change 'value' to site URL you want to be sent to the friend
-->
<input type=hidden name="urlis" value="http://www.knowitallaffiliates.com/">
<!-- Change 'value' to link you want on the Thank You page -
generated by sendurl.php (BTW: you could just use the url (file
name) of the page with the form, in which case , the full path is
not required if the sendurl.php is in the same folder. -->
<input type=hidden name="redirectlink" value="http://www.knowitallaffiliates/tellafriend.htm/">
<!-- ************* End of Configure Section ************ -->
<!-- ************ Do Not Change This Section
********** -->
<P align=center>Your Name: <input type=text
name="visitor" size="25"> <br>
Your Email: <input type=text name="visitormail"
size="25"> <br>
Friend's Name: <input type=text name="friend" size="25"> <br>
Friend's Email: <input type=text name="friendmail" size="25">
<br>
<br>
Notes (optional):<br>
<textarea name=notes rows=4 cols=30></textarea> <br>
<input type=submit VALUE="Send URL"><br>
Email addresses are not collected, sold, rented or used in any way.<br>
Feel free to use this option as often as you like. <br>
<b>We will never contact you or your friend.</b><br>
Thanks for helping us, help you and your friend.<br>
</form>
</td></tr></table>
<p><font size="1">I got this
code FREE from </font><a href="http://www.knowitallaffiliates.com/tellafriend.htm">
<font size="1">Know It All</font></a>
<!-- ****************** End of form submittal section *************
--> |
You will have to add a second page and name it sendurl.php
Copy this code to your template and make all the changes you want to make
before you save it as php rather than html. Once it is saved as php you will only see the
code. If you want to make any additional changes, you will have to know how
to read the code.
Make sure you change the links to your URL.
|
<!-- ************* This is the 'sendurl.php' Script **********
-->
<!-- ************* Warning: Paste this code into ********** -->
<!-- ************* a simple HTML thank you page ********** -->
<!-- ************* that must then be saved as ********** -->
<!-- ************* 'text file' named 'sendurl.php' ********** -->
<?php
$myemail = "($visitormail)";
?>
Thank You <?php echo $visitor ?> <br>
For sending information about <strong>
<a href="index.htm">
knowitallaffiliates</a></strong><br>
To <?php echo $friend ?> <br>
</b>
<br>
<HR width="80%">
<br>
<p align="center">Press the back button on your browser or
<a href="http://www.Your Site Name.com/tellafriend.htm">
Click Here</a> to tell another friend.</p>
<br>
<HR width="80%">
<?php
$ip = getenv("REMOTE_ADDR");
if (!isset($visitormail) || !isset($friendmail))
echo "<font size=6>You Goofed</font> $ip" ;
$todayis = date("l, F j, Y, g:i a") ;
$notes = stripcslashes($notes); $messageis = " $todayis [EST] \n
Your Friend: $visitor \n
Sent this URL: $sitename ($urlis) \n
To: $friend $friendmail \n
With These Comments: $notes \n
";
$messageme = $ip . " " . $messageis;
$from = "From: $myemail\r\n";
if ($myemail != "")
mail($myemail, $sitename, $messageme, $from);
if ($friendmail != "")
mail($friendmail, $sitename, $messageis, $from);
if ($visitormail != "")
mail($visitormail, $sitename, $messageis, $from);
?>
<!-- ********** End of php script *********** -->
|
Tell a Friend about
KnowitallAffiliates
OK, Let's start looking at which
affiliate programs to join.
|