Page 1 of 1

Additional fields for flash forms

Posted: Wed Feb 04, 2009 1:34 pm
by Erycka
I am hoping that perhaps you can help me with a little php coding. I am a newbie to php...and trying to learn as I go. Anywho, what I am trying to do is create a form in Flash to send the email with the several fields. The php code that I have so far is:

Code: Select all

 
 <?php
//create short variable names
$name=$_POST['name'];
$email=$_POST['email'];
$subject=$_POST['subject'];
$message=$_POST['message'];
$name=trim($name);
$email=trim($email);
$subject=StripSlashes($subject);
$message=StripSlashes($message);
$toaddress='erycka00@gmail.com';
 
mail($toaddress,$subjec,$message,"From: $name <$email>");
//clear the variables
$name='';
$email='';
$subject='';
$message='';
echo "response=passed";
 
?>
 
My question is, how do add additional fields and have it captured...for instance, I would like to add:
Title
Company
Phone
Address

and so on...

I would greatly appreicate your help, I ever so greatly appreicate it.

Re: Additional fields for flash forms

Posted: Wed Feb 04, 2009 1:35 pm
by Benjamin
Please use [ code = php ] tags when posting code. You may modify your existing post and most likely get more responses.