My contact form worked fine when I tested it on my Linux webserver. Now I moved it to a windows based web server and it is now broken.
I get an email sent to my email address (which means that my email address was passed through fine [because it carbon copies to the email placed in the form]) but no data was in the email (from the form fields).
This is the guts of the script:
<?php
$pagetype = "Quote";
$scriptname = "$pagetype A Form";
$script_dir = "/test/";
$emailaddress = "email@email.com";
$subjectheader = "$pagetype Form A";
$redirecturl = "thankyou.html";
$message = "
---Order Info---
Preferred Shipper: $shipper
Zip Code: $zip
Email: $email
New Quote: $new_quote
Old Quote #: $oldquote
Distributor or End User: $distributor_or_end_user
Company: $company
Shipping FOB Plant: $shipping_fob_plant\n\n
---Bag Info---
Bag Thickness: $bag_thickness
Bag Width/Length: $bag_width_length
Quantity: $quantity
Estimated Annual Usage per Size: $usage_per_size
Special Features: $special_features
Other: $other_text
Type: $type
Tubing: $tubing
Other: $other_text2
Resin: $resin
Other: $other_text3
UVI: $uvi
Antistat: $antistat
Application:\n$application\n\n
---Security Info---
IP Address: $ip
Browser: $browser
Date: $d
Time: $t";
if ($_SERVER['REQUEST_METHOD'] == "POST") {
$shipper = $_POST[shipper];
$email = $_POST[email];
$zip = $_POST[zip];
$new_quote = $_POST[new_quote];
$oldquote = $_POST[oldquote];
$distributor_or_end_user = $_POST[distributor_or_end_user];
$bag_thickness = $_POST[bag_thickness];
$bag_width_length = $_POST[bag_width_length];
$usage_per_size = $_POST[usage_per_size];
$special_features = $_POST[special_features];
$other_text = $_POST[other_text];
$type = $_POST[type];
$tubing = $_POST[tubing];
$other_text2 = $_POST[other_text2];
$resin = $_POST[resin];
$other_text3 = $_POST[other_text3];
$uvi = $_POST[uvi];
$antistat = $_POST[antistat];
$application = $_POST[application];
$shipping_fob_plant = $_POST[shipping_fob_plant];
$ip = $_POST[ip];
$browser = $_POST[browser];
$d = $_POST[d];
$t = $_POST[t];
$subject = $_POST[subject];
mail("$emailaddress", "$subjectheader $subject", "$message", "From: $email \nReply-To: $email \nCc: $email");
if ($redirecturl != "") {
header("Location: $redirecturl");
} else {
echo "";
}
} else {
include($script_dir . 'quote_a_body.php');
}
?>
Can someone please help me? Thanks.
(Server is now Microsoft IIS)