Hello
PHP is not sending my flash form field data to my email. When I fill-out a form and hit send button, I only receive the form fields label in my email but not receiving the user data. This is the message I see in my email below:
We have received the following information:
Customer Full Name:
Company Name:
E-mail Address:
Telephone Number:
Country:
State:
City and Post Code:
Shipping Address:
Customer Inquiry:
This is my PHP code below:
[php]<?php
$to = "[email protected]" ;
$name = $_REQUEST[‘name’] ;
$headers = $_REQUEST[‘Email’] ;
$subject = “Quote Request Form”;
$fields = array();
$fields{“name_field”} = “Customer Full Name”;
$fields{“company_field”} = “Company Name”;
$fields{“email_field”} = “E-mail Address”;
$fields{“phone_field”} = “Telephone Number”;
$fields{“country_field”} = “Country”;
$fields{“state_field”} = “State”;
$fields{“city_field”} = “City and Post Code”;
$fields{“address_field”} = “Shipping Address”;
$fields{“message_field”} = “Customer Inquiry”;
$body = “We have received the following information:\n\n”; foreach($fields as $a => $b){ $body .= sprintf("%20s: %s\n",$b,$_REQUEST[$a]); }
$send = mail($to, $subject, $body, $headers);
?>[/php]
Can somebody please help me to re-write the correct code to send the user data from Flash to my email address.
Thanks for your time and support…