I had this code done for me...for a client....but the most important part is not working...it is supposed to email the form to an email address but it doesn't...the variables for the email are at the end...any help is much appreciated...have a huge deadline
<?php
if(!empty($_REQUEST['attn']) && $_REQUEST['attn']=='signup')
{
$to="
[email protected]";
$attn=$_REQUEST['attn'];
$ip=getenv("REMOTE_ADDR");
$custtype=$_REQUEST['custtype'];
$bizname=$_REQUEST['bizname'];
$name=$_REQUEST['name'];
$address=$_REQUEST['address'];
$city=$_REQUEST['city'];
$zip=$_REQUEST['zip'];
$email=$_REQUEST['email'];
$utility_name=$_REQUEST['utility_name'];
$utility_number=$_REQUEST['utility_number'];
$pod_number=$_REQUEST['pod_number'];
$name_key=$_REQUEST['name_key'];
$meterday=$_REQUEST['meterday'];
$phone=$_REQUEST['phone'];
$fax=$_REQUEST['fax'];
$referral=$_REQUEST['referral'];
$position=$_REQUEST['position'];
$sig=$_REQUEST['sig'];
$message = "From: $name ($email)\n
Customer Type: $custtype \n
Legal Company Name: $bizname \n
Your Name: $name \n
Street Address: $address \n
City: $city \n
Zip Code: $zip \n
Email Address: $email \n
Current Distribution Provider: $utility_name \n
Account Number: $utility_number \n
POD Number: $pod_number \n
Name Key: $name_key \n
Meter Read Date: $meterday \n
Phone Number: $phone \n
Fax Number: $fax \n
Referred By: $referral \n
Position: $position \n
E-Signature: $sig \n
Additional Info : IP = $ip \n
";
$from = "From: $name ($email)\r\n";
if(mail(
[email protected]; $subject, $message, $from))
@header("location:thanks.php");
else
@header("location:index.php");
}
?>