DJB
05-27-2006, 06:17 PM
okay got my feedback form talking to the server with component fields-
theName
theEmail
theMessage
It now returns email successfully with headings-
name:
email:
message:
but doesnt include the user input under these fields. Is there something wrong with my php code -
<?PHP
$to = "mail@myaddress.co.uk";
$subject = "Website Feedback Form";
$message = "Name: " . $theName;
$message .= "\nEmail: " . $theEmail;
$message .= "\n\nMessage: " . $theMessage;
$headers = "From: $theEmail";
$headers .= "\nReply-To: $theEmail";
$sentOk = mail($to,$subject,$message,$headers);
echo "sentOk=" . $sentOk;
?>
bit of newbie when it comes to this so any help welcome as getting desperate - deadline in a few hours!!
ta very much.
D
theName
theEmail
theMessage
It now returns email successfully with headings-
name:
email:
message:
but doesnt include the user input under these fields. Is there something wrong with my php code -
<?PHP
$to = "mail@myaddress.co.uk";
$subject = "Website Feedback Form";
$message = "Name: " . $theName;
$message .= "\nEmail: " . $theEmail;
$message .= "\n\nMessage: " . $theMessage;
$headers = "From: $theEmail";
$headers .= "\nReply-To: $theEmail";
$sentOk = mail($to,$subject,$message,$headers);
echo "sentOk=" . $sentOk;
?>
bit of newbie when it comes to this so any help welcome as getting desperate - deadline in a few hours!!
ta very much.
D