Jump to content

[SOLVED] Mail form... AGAIN


Mr_J

Recommended Posts

Hi all,

When I "send", I only receive half the info submitted.

<?php
$name = $_POST['name']; 
$tel_no = $_POST['tel_no']; 
$email_address = $_POST['email']; 

$message = $_POST['message']; 


if($error_occured=="no") { 

$to = "[email protected];";
$bc =. "[email protected]";
$cc =. "[email protected]";
$email_from = $email_address; 
$email_subject = "From Bostonterrier.za.net";
$email_body = "New message: Name = " . $name . ", Telephone No = " . $tel_no . ", Message = ". message;
$headers = "From: $email_from"; 

mail($to,$bc,$cc,$email_address,$email_subject,$email_body,$headers);

} 
?>

I have HTML which include my .php file as ACTION in the form

<form method="POST" name="contact" action="contact-form-handler.php">

Any help please

Thanks

Link to comment
https://forums.phpfreaks.com/topic/155036-solved-mail-form-again/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.