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:
[table]
[tr]
[td]<?php
$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);
header(“Location: http://calvarypublishing.org/home/contactSent.htm”);
?> [/td]
[/tr]
[/table]
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