Hello Everyone,
I have created a flash form and I need some action script for the submit button. I have created a PHP file to send me all of the details but I need the action script to link all of the fields and the PHP together. My php script is shown below:
<?php
//create short variable names
$name=$_POST['name'];
$email=$_POST['email'];
$tel=$_POST['tel'];
$company=$_POST['company'];
$subject=$_POST['subject'];
$other=$_POST['other'];
$problem=$_POST['problem'];
$reference=$_POST['reference'];
$name=trim($name);
$email=trim($email);
$company=StripSlashes($company);
$subject=StripSlashes($subject);
//modify the next line with your own email address
$toaddress='????????????';
mail($toaddress,$subject,$message,"From: $name <$email>");
//clear the variables
$name='';
$email='';
$tel='';
$company='';
$subject='';
$other='';
$problem='';
$reference='';
echo "???????????";
?>
Thanks Everyone
I have created a flash form and I need some action script for the submit button. I have created a PHP file to send me all of the details but I need the action script to link all of the fields and the PHP together. My php script is shown below:
<?php
//create short variable names
$name=$_POST['name'];
$email=$_POST['email'];
$tel=$_POST['tel'];
$company=$_POST['company'];
$subject=$_POST['subject'];
$other=$_POST['other'];
$problem=$_POST['problem'];
$reference=$_POST['reference'];
$name=trim($name);
$email=trim($email);
$company=StripSlashes($company);
$subject=StripSlashes($subject);
//modify the next line with your own email address
$toaddress='????????????';
mail($toaddress,$subject,$message,"From: $name <$email>");
//clear the variables
$name='';
$email='';
$tel='';
$company='';
$subject='';
$other='';
$problem='';
$reference='';
echo "???????????";
?>
Thanks Everyone