I have posted about the contact form script before, but i could not figure it out. The hosting company said I need to have a correct “From” header for it to be able to send. I am pasting the entire code. Can you please tell me what I should add and where to place it. I am a php newbie thanks for your help
[php]
Farr Better Plumbing <!-- The contact form starts from here-->
<?php
// Routine to check email for problems...
function isEmail($email){
return eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email);
}
$error = ''; // error message
$name = ''; // sender's name
$email = ''; // sender's email address
$subject = ''; // subject
$message = ''; // the message itself
if(isset($_POST['send']))
{
$name = $_POST['name'];
$email = $_POST['email'];
$subject = $_POST['subject'];
$message = $_POST['message'];
if(trim($name) == '')
{
$error = ' <!-- Message sent! (change the text below as you wish)-->
<div style="text-align:center;">
<h1>Congratulations!!</h1>
<p>Thank you <b><?=$name;?></b>, your message is sent!</p>
</div>
<!--End Message Sent-->
<?php
if(!isset($_POST['send']) || $error != '')
{
}
?>
[/php]