Additional fields for flash forms

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Erycka
Forum Newbie
Posts: 1
Joined: Wed Feb 04, 2009 1:31 pm

Additional fields for flash forms

Post 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.
Last edited by Erycka on Wed Feb 04, 2009 7:18 pm, edited 5 times in total.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Additional fields for flash forms

Post by Benjamin »

Please use [ code = php ] tags when posting code. You may modify your existing post and most likely get more responses.
Post Reply