I’ve made a form in Flash Builder (Flex 4) with 12 text input boxes, which are assigned to variables in Flash Builder, which are in turn assigned in the PHP script. I’m trying to use a PHP script to take the text typed into those boxes and put it in a email. The problem I’m running into is only the contents of the first two boxes are included in the email. The arbitrary title headings I put into the email message body are included but the content of the boxes are not, just the id of the text box, ie textBox2.text. So it returns Stove: kitStove.text rather than Stove: an old electric the owner won’t fix.
Is this an inherent limitation of a PHP generated email, or is this result due to my mistake? This is the script:
Code: Select all
<!--
<?php
$senderName = $_POST['senderName'];
$senderEmail = $_POST['senderEmail'];
$sendToName = $_POST['sendToName'];
$sendToEmail = $_POST['sendToEmail'];
$kitCleanProd = $_POST['kitCleanProd'];
$kitWaterFiltra = $_POST['kitWaterFiltra'];
$kitStove = $_POST['kitStove'];
$kitFridge = $_POST['kitFridge'];
$kitMicroWave = $_POST['kitMicroWave'];
$kitToasterOven = $_POST['kitToasterOven'];
$kitGrill = $_POST['kitGrill'];
$kitBlender = $_POST['kitBlender'];
$kitOtherAppl = $_POST['kitOtherAppl'];
$kitCookWare = $_POST['kitCookWare'];
$kitBulbs = $_POST['kitBulbs'];
$recipient = "$sendToEmail";
$subject = "Kitchen Questionnaire";
$headers = "From: $senderEmail ";
$message = "From: $senderName\n\n
Email Address: $senderEmail\n\n
Cleaning Products: $kitCleanProd\n\n
Water Filtration: $kitWaterFiltra\n\n
Stove: kitStove\n\n
Fridge: kitFridge\n\n
Microwave: kitMicroWave\n\n
Toaster Oven: kitToasterOven\n\n
Grill: kitGrill\n\n
Blender: kitBlender\n\n
Other Appliances: kitOtherAppl\n\n
Cookware: kitCookWare\n\n
Light Bulbs: kitBulbs";
$message = StripSlashes($message);
mail($recipient, $subject, $message, $headers)
?>
-->
Thanks for your attention.
Kearney