adamcasey
02-07-2008, 09:01 AM
I've just created a web form and it's now working perfectly.
However I want to add the ability to email it to more than one recipient and was wondering how to do this as I had no knowledge of PHP until yesterday.
Actionscript:
var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();
sendBU.onRelease = function() {
senderLoad.nameInput = nameInput.text;
senderLoad.emailInput = emailInput.text;
senderLoad.companyInput = companyInput.text;
senderLoad.contacttelInput = contacttelInput.text;
senderLoad.countyCOMBO = countyCOMBO.ComboBox.text;
senderLoad.sendAndLoad("http://www.tees.me.uk/Book/send.php",receiveLoad);
}
PHP:
<?PHP
$to = "[email protected]";
$cc = "[email protected]"; - I thought this might work but it didn't
$subject = "Online Flip Book Demo Request";
$message = "Name: " . $nameInput;
$message .= "\nEmail: " . $emailInput;
$message .= "\nCompany: " . $companyInput;
$message .= "\nTelephone: " . $contacttelInput;
$message .= "\nLocation: " . $countyCOMBO;
$headers = "From: $emailInput";
$headers .= "\nReply-To: $emailInput";
$sentOk = mail($to,$cc,$subject,$message,$headers);
echo "sentOk=" . $sentOk;
?>
However I want to add the ability to email it to more than one recipient and was wondering how to do this as I had no knowledge of PHP until yesterday.
Actionscript:
var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();
sendBU.onRelease = function() {
senderLoad.nameInput = nameInput.text;
senderLoad.emailInput = emailInput.text;
senderLoad.companyInput = companyInput.text;
senderLoad.contacttelInput = contacttelInput.text;
senderLoad.countyCOMBO = countyCOMBO.ComboBox.text;
senderLoad.sendAndLoad("http://www.tees.me.uk/Book/send.php",receiveLoad);
}
PHP:
<?PHP
$to = "[email protected]";
$cc = "[email protected]"; - I thought this might work but it didn't
$subject = "Online Flip Book Demo Request";
$message = "Name: " . $nameInput;
$message .= "\nEmail: " . $emailInput;
$message .= "\nCompany: " . $companyInput;
$message .= "\nTelephone: " . $contacttelInput;
$message .= "\nLocation: " . $countyCOMBO;
$headers = "From: $emailInput";
$headers .= "\nReply-To: $emailInput";
$sentOk = mail($to,$cc,$subject,$message,$headers);
echo "sentOk=" . $sentOk;
?>