I made this PHP mail form script about five years ago. I hardly know any PHP, and I’ve just been reusing this over the years. The script seems to work on other servers, but not on GoDaddy. I’ve used this script on the same GoDaddy account several years ago, so I don’t know if there is some kind of PHP incompatibility or something which is affecting it. Here’s the link where the form is: [Admin: link removed for security reason]
I’ve called up GoDaddy several times and they don’t seem to be any help. They just keep directing me towards their own mail form script, which I don’t want to use.
Here’s the source of the script:
[code]<?
// Form Variables
$name = $_REQUEST [‘name’];
$email = $_REQUEST [‘email’];
$address = $_REQUEST [‘address’];
$state = $_REQUEST [‘state’];
$zip = $_REQUEST [‘zip’];
$state = $_REQUEST [‘state’];
$contact = $_REQUEST [‘contact’];
$time = $_REQUEST [‘time’];
$phone = $_REQUEST [‘phone’];
$plate = $_REQUEST [‘plate’];
$business = $_REQUEST [‘business’];
$describe = $_REQUEST [‘describe’];
$notes = $_REQUEST [‘notes’];
// Recipients
//$to .= ‘[email protected]’ . ', ';
//$to .= ‘[email protected]’ . ', ';
$to .= ‘[email protected]’;
mail( “$to”, “Automobile Quote”,
stripslashes("Name: $name \nMailing Address: $address \nState: $state \nZIP/Postal Code: $zip \nBest Way to Contact: $contact \nPrimary Phone Number: $phone \nBest time to contact: $time \nPlate: $plate \nIs the vehicle used in business?: $business \nIf so, please describe: $describe\nNotes: $notes"), "From: $email");
header( “Location: ./autoquote.php” );
header( “Cache-Control: no-cache, must-revalidate” );
header( “Pragma: no-cache” );
?>[/code]