By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,302 Members | 1,760 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,302 IT Pros & Developers. It's quick & easy.

Help with flash email form using php script

P: 1
Hi All,

I attempting to use the following actionscript and php code to send from a flash form that I have created.

However I have used a combo box from the built in flash 8 components and I'm not getting the emails through with the data that is being selected in the combo box. I've attempted to create the code I think would extract this information but I'm not having much look?

Also I've attempted to add in a carboncopy email address so that more than one of my companies departments gets the contact form emailed to them.
This has not worked either?

I've highlight the two parts of the scripts that I have created below

The code is taken from the tutorial
Sending Mail with PHP
p.s. I've never wrote any PHP before so have guessed when doctoring this script.


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;


$to = "";
$cc = "";
$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;

Help please!
Feb 6 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.