Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash Forms

Status
Not open for further replies.

MikeCB

Technical User
Aug 12, 2004
43
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top