Call us Toll-Free:
Live ChatEmail us


Let a friend know about a site Recommend a site

Code Wizard, 12-30-2006

Script Note:
This script will let you recommend a site to a person. So you can put this on your page. People will type in their friends e-mail address, hit the go! button and their freind will be sent information about the page. There's 2 files here. One called refer.html and the other is refer.php.

To the code!!!

<!---Begin refer.html--->
<head><title>Recommend page to a friend</title></head>
<body bgcolor="#ffffff">
<form action="refer.php" method="post">
Friend E-mail: <input type="text" name="email"><br>
Your Name: <input type="text" name="sendername"><br>
Your E-mail: <input type="text" name="senderemail"><br>
<input type="submit" value="Go!"> <input type="reset" value="reset">
<!---End refer.html--->

<!---Begin refer.php--->
mail("$email", "Site Name!", "Please visit for the best stuff.", "From: "$sendername" $senderemail
echo "E-mail sent to $email from $senderemail, they now know about";
<!---End refer.php--->

That's all there is to it, enjoy!

aaa, 04-20-2018
Enjoyed this post?

Subscribe Now to receive new posts via Email as soon as they come out.

Post your comments

Note: No link spamming! If your message contains link/s, it will NOT be published on the site before manually approved by one of our moderators.

About Us  |  Contact us  |  Privacy Policy  |  Terms & Conditions