ro6er
Programmer
- Jul 1, 2003
- 76
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
php
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);
?>