Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash php form with checkboxes

Status
Not open for further replies.

ro6er

Programmer
Jul 1, 2003
76
0
0
I've been trying to pass a checkbox var to a php page with little success. I've googled for ages and can't seem to find much that works or helps.

I've tried this but it doesn't seem to work
Code:
FireSafetyConsultant = FireSafetyConsultant.text
loadVariablesNum("text.php", 0, "POST");

php

Code:
<?php
$sendTo = "ro6er@hotmail.com";
$subject = "Message received from the Howler website";
$headers = "From: " . $_POST["firstName"] ."<" . $_POST["email"] .">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-path: " . $_POST["email"];
$message = "Requirements:" . $_POST["requirements"] . "";
//$message = "Message details: " . $_POST["fullname"]; ." " . $_POST["company"]; ." " . $_POST["address1"]; ." " . $_POST["postalcode"]; ." " . $_POST["email"]; ." " . $_POST["tel"]; ." " . $_POST["mob"]; ." " . $_POST["requirements"]; ." " . $_POST["GeneralConstruction"]; ." " . $_POST["ElectricalContractor"]; ." " . $_POST["FireSafetyContractor"]; ." " . $_POST["HealthSafetyConsultant"]; ." " . $_POST["HealthSafetyDistributor"]; ." " . $_POST["ElectricalDistributor"]; ." " . $_POST["FireSafetyEquipmentWholesaler"]; ." " . $_POST["FireSafetyConsultant"] ."\r\n";

mail($sendTo, $subject, $message, $headers);

?>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top