# Flash 8 Feedback Form help for a newbie

**URL:** <https://forum.kirupa.com/t/flash-8-feedback-form-help-for-a-newbie/248073>\
**Category:** flash\
**Created:** [January 3, 2008, 2:06pm UTC](https://forum.kirupa.com/t/flash-8-feedback-form-help-for-a-newbie/248073 "2008-01-03T14:06:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MastaGOLF](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@MastaGOLF](https://forum.kirupa.com/u/MastaGOLF)\
**Post date:** [January 3, 2008, 2:06pm UTC](https://forum.kirupa.com/t/flash-8-feedback-form-help-for-a-newbie/248073/1 "2008-01-03T14:06:18Z")

</div>

I am trying to create a feedback form and after reviewing several tutorials I am stuck. I took a tutorial lesson that uses PHP and tried to modify it to add additional text boxes but I do not receive any of the additional fields in the email. How do you add the information to the email?

The AS in flash is:

stop();  
send\_btn.onRelease = function() {  
my\_vars = new LoadVars();  
my\_vars.name = name\_box.text;  
my\_vars.address = address\_box.text;  
my\_vars.state = state\_box.text;  
my\_vars.zip = zip\_box.text;  
my\_vars.phone = phone\_box.text;  
my\_vars.sender = email\_box.text;  
my\_vars.subject = subject\_box.text;  
my\_vars.message = message\_box.text;  
if (my\_vars.name != “” and my\_vars.sender != “” and my\_vars.address != “” and my\_vars.city != “” and my\_vars.state != “” and my\_vars.zip != “” and my\_vars.phone != “” and my\_vars.subject != “” and my\_vars.message != “”) {  
my\_vars.sendAndLoad(“mailer1.php”, my\_vars, “POST”);  
gotoAndStop(2);  
} else {  
error\_clip.gotoAndPlay(2);  
}  
my\_vars.onLoad = function() {  
gotoAndStop(3);  
};  
};  
name\_box.onSetFocus = email\_box.onSetFocus = address\_box.onSetFocus = city\_box.onSetFocus = state\_box.onSetFocus = zip\_box.onSetFocus = phone\_box.onSetFocus =subject\_box.onSetFocus=message\_box.onSetFocus=function () {  
if (error\_clip.\_currentframe != 1) {  
error\_clip.gotoAndPlay(6);  
}  
};

The PHP code is:

\<?php  
$name = $\_REQUEST[“name”];  
$sender = $\_REQUEST[“sender”];  
$address = $\_REQUEST[“address”];  
$state = $\_REQUEST[“city”];  
$zip = $\_REQUEST[“zip”];  
$phone = $\_REQUEST[“phone”];  
$subject = $\_REQUEST[“subject”];  
$message = $\_REQUEST[“message”];  
$name = stripslashes($name);  
$sender = stripslashes($sender);  
$address = stripslashes($address);  
$state = stripslashes($state);  
$city = stripslashes($city);  
$zip = stripslashes($zip);  
$phone = stripslashes($phone);  
$message = stripslashes($message);  
$subject = stripslashes($subject);  
$subject = "Kilpatrick Lawn Estimate Form ". $subject;

if(isset($message) and isset($name) and isset($address) and isset($city) and isset($state) and isset($zip) and isset($phone) and isset($subject) and isset($sender)){  
mail(“[jonathan@kilpatricklawns.com](mailto:jonathan@kilpatricklawns.com)”, $subject, $message, “From: $sender”);  
}  
?\>
