|
Tell-A-Friend script
|
|
04-26-2007, 08:45 AM
Post: #1
|
|||
|
|||
|
Tell-A-Friend script
This tutorial will show you how to create a simple Tell-A-Friend script.
Step 1. Create a necessary files Create a file named TAF.php Step 2. Write the code Open the file TAF.php and copy/paste the following code: PHP Code: You cannot view this code until you login or registerPlace the following HTML code on pages you wish to allow your visitors to recommend to their friends: [html] <form action="http://www.yourwebsite/TAF.php" method="POST"> Your Name: <input type="text" name="YourName"> Your E-mail: <input type="text" name="YourEmail"> Friend's Name: <input type="text" name="FriendsName"> Friend's E-mail: <input type="text" name="FriendsEmail"> <input type="submit" value="Tell A Friend"> </form> [/html]Step 3. How does this script work? When a visitor enters all the data and submit a form, the TAF.php will send an e-mail recommending the web page it was referred from. When the e-mail is sent, visitor would see the "Thank you" message and a link which is leading him/her back to the previous page. Original tutorial URL: http://www.cheap2host.info/forum/showthread.php?t=33 <script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script> [SIZE="3"]Get a free domain name![/SIZE] |
|||
|
04-26-2007, 04:14 PM
Post: #2
|
|||
|
|||
|
Wow really nice one.I'm going try it..
|
|||
|
« Next Oldest | Next Newest »
|





