HTML/PHP form help

Hi all! I’m a first-time poster and am having trouble with the php form for a site of mine. The php code is:

$sendTo = "[email protected]";
$subject = “CP Customer Account”;
$headers = “From: " . $_POST[“ca_fname”];
$headers .= “<” . $_POST[“ca_email”] . “>\r\n”;
$headers .= “Reply-To: " . $_POST[“ca_email”] . “\r\n”;
$headers .= “Return-Path: " . $_POST[“ca_email”];
$message “Customer Information:”
.”\r\n”.”\r\n"." Email: " . $_POST[“ca_email”]
."\r\n"."\r\n"." Name: " . $_POST[“ca_fname”]
."\r\n"."\r\n"." Shipping Address: " . $_POST[“ca_address”]
."\r\n"."\r\n"." " . $_POST[“ca_city”]
."\r\n"."\r\n"." Phone: " . $_POST[“ca_phone”];
mail($sendTo, $subject, $message, $headers);
?> [/td]

I’m a novice when it come to php coding and from other forms I’ve done, I can’t see anything wrong with this code, but any help would be much appreciated :slight_smile:

Hello :smiley:

your missing an equals sign here:
[php]$message “Customer Information:”[/php]
should be:
[php]$message = “Customer Information:”[/php]

Hope that helps

Sponsor our Newsletter | Privacy Policy | Terms of Service