home | about us | products | services | support | faq | links
 







 

In the FLA file use the text tool texttool to draw a new text box where you want it. After you draw the box, immediately go to the properites inspector at the bottom and change the field to type "input text".

propeties.

After that add a name to identify the text box just below. In this example I chose useraddresses, but any thing would be fine here. Next, in the properties inspector find the variable field. It is highlighted in yellow on the right of the picture above. Type in "address" in the box. It is not required that you use this name, but it is very important that you use the same name you use here in emailattach.php that you will be editing shortly. Now make adjustments in your layout, save the file and put in on your website as before.

In emailattach.php you should ironcically search for the commented out code that says //no need to edit below. Well, it turns out if you want to add fields to your form you will need to edit below. So find the code that looks looks like this pic. Copy and pastable examples follow the pics.

Old Code (pic)

orginal code

Old Code (copy and pastable)


//no need to edit below

$from = $_POST['email'];
$email_from = $from; // Who the email is from
$email_subject = $_POST['subject']; // The Subject of the email
$email_txt = "This is a message from " . $_POST['name'] . "<br></br>" . $_POST['message']; // Text in the message, you can edit and customize this

New Code (pic)

newcode

New Code (copy and pastable)

$from = $_POST['email'];
$email_from = $from; // Who the email is from
$email_subject = $_POST['subject']; // The Subject of the email
$email_txt = "This is a message from " . $_POST['name'] . "<br></br>" . $_POST['address'] . "<br></br>" . $_POST['message']; // Text in the message, you can edit and customize this

You can continue with this example with as many extra fields as you like. Just remember for each extra field add the code:

$_POST['address'] . "<br></br>" .

with the new variable name from the Flash file enclosed in brackets and single quotation marks like the code above.

 

 

 

   
       
Flash Contact Forms - Copyright 2007 FlashAttach.com