Mail form via flash?

Soldato
Joined
18 Oct 2002
Posts
8,416
Location
South Central L.A.
Has anyone got a working model of a feedback/mail form that can be sent to an email address from a flash form instead of the conventional html form?

Thanks
 
Thankyou I have it working great now, much easier to use php. But I just have one addon that I need, at the moment the script looks like this

Code:
<?php
$sendTo = "[email protected]";
$subject = "xxxxxx";

$headers = "From: " . $_POST["Name"];
$headers .= "<" . $_POST["Email"] . ">\r\n";
$headers .= "Reply-To: " . $_POST["Email"] . "\r\n";
$headers .= "Return-Path: " . $_POST["Email"];
$message = $_POST["Phone"];


mail($sendTo, $subject, $message, $headers);
?>

The main message of the email being the phone number, but I have an extra variable called University that I wish to appear in the body of the email too, how do I modify the code to do this? (I'm not really fluent in php:p)
 
gurdas said:
Thankyou I have it working great now, much easier to use php. But I just have one addon that I need, at the moment the script looks like this

Code:
<?php
$sendTo = "[email protected]";
$subject = "xxxxxx";

$headers = "From: " . $_POST["Name"];
$headers .= "<" . $_POST["Email"] . ">\r\n";
$headers .= "Reply-To: " . $_POST["Email"] . "\r\n";
$headers .= "Return-Path: " . $_POST["Email"];
$message = $_POST["Phone"];


mail($sendTo, $subject, $message, $headers);
?>

The main message of the email being the phone number, but I have an extra variable called University that I wish to appear in the body of the email too, how do I modify the code to do this? (I'm not really fluent in php:p)

Hows this???

Code:
<?php
$sendTo = "[email protected]";
$subject = "xxxxxx";

$headers = "From: " . $_POST["Name"];
$headers .= "<" . $_POST["Email"] . ">\r\n";
$headers .= "Reply-To: " . $_POST["Email"] . "\r\n";
$headers .= "Return-Path: " . $_POST["Email"];
$message =  . "Phone: " . $_POST["Phone"] . "\nUniversity: " . $_POST["University"];


mail($sendTo, $subject, $message, $headers);
?>

Is that more like what you want?
 
Code:
<?php
$sendTo = "[email protected]";
$subject = "xxxxxx";

$headers = "From: " . $_POST["Name"];
$headers .= "<" . $_POST["Email"] . ">\r\n";
$headers .= "Reply-To: " . $_POST["Email"] . "\r\n";
$headers .= "Return-Path: " . $_POST["Email"];
$message = "Phone: " . $_POST["Phone"] . " University: " . $_POST["University"];


mail($sendTo, $subject, $message, $headers);
?>

Does this work?
 
Back
Top Bottom