View Full Version : Help finding a tutorial
pacothelovetaco
06-28-2005, 07:03 PM
I have been searching and you guys have hlep various people with this problem. I am trying to set up a "send to a friend" form that you can fill out and a link will be sent to a friends email address the user will input into the field. A lot of people have had this question and they have been referred to a tutorial. I am having trouble located the tutorial. Google has not been much help either. I can find plenty of help to make a form and have it sent to me but I want the form filled out and sent to the person the user wants to send it to. Does anyone know where I can find this tutorial?
thanx
Flash Gordon
06-29-2005, 01:04 AM
make a simple submit html page. on the page it gets submited to type
<?php
// 'email' is the "name" of the forum input field.
$to = $_POST['email'];
$subject = "Your friend wants to share his/her rating";
$message = "Your friend got this score yadaday";
$from = $_POST['from'];
mail($to, $subject, $message, $from);
?>
Possible problems to arrise: People could use your form to spam other. CyanBlue posted a fix to this in here, so check.
I suggest you learn how to use a simple form HTML page and PHP page that has a mail function. Additionally, you could always use the mail function in HTML that uses the users mailing program
Hope that helps a little.
FG
pacothelovetaco
06-29-2005, 01:52 PM
Yes I was having trouble traking down the PHP code. I forgot to mention that I will be setting this up in flash. I think I know how to setup the form in flash to use this PHP code. But if I cannot figure it out, I will be back. Thank you and I will track down that security fix CyanBlue posted.
Thanx
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.