Additional fields for flash forms
Posted: Wed Feb 04, 2009 1:34 pm
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:
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.
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";
?>
Title
Company
Phone
Address
and so on...
I would greatly appreicate your help, I ever so greatly appreicate it.