Im using microsoft expressions to build a from and trying to send the form data using PHP. here is what I have so far...
<form action="contacts.php" id="form" method="post"> <div class="container1">
Name:
<div><input name="name" type="text" /></div>
E-mail:
<div><input name="email" type="text" /></div>
Fax:
<div><input name="fax" type="text" /></div>
Phone:
<div><input name="phone" type="text" /></div>
Job Type:<br /> <select name="Job type" style="width: 181px; height: 21px"> <option> </option> <option>Paint </option> <option selected="selected">New Construction </option> <option>Replacement </option> <option>Deck </option> <option>Consultation </option> <option>Window Installation </option> <option>Moist Barrier systems </option> <option>Repairs </option> <option>Material Orders </option> <option>Bid Request </option> </select><br />
City:
<div><input type="text" /></div>
Message:<br />
<textarea rows="40" class="textarea" cols="30"></textarea><br />
<br />
<div class="fright indent">
<a href="#" class="link-5" onclick="document.getElementById('form').submit()"><em><b>send</b></em></a>
<div class="indent-2"> <a href="#" class="link-5" onclick="document.getElementById('form').reset()"><em><b>reset</b></em></a></div>
</div>
<br class="clear" />
</div>
</form>
and here is my .PHP code...
<?php $to = "service@breezesiding.com";
$subject = "Contact Us";
$message = $_POST['message'] ;
$headers = "From: $email";
$sent = mail($to, $subject, $message, $headers) ;
if ($sent) {print "Your mail was sent successfully"; }
else {print "We encountered an error sending your mail"; } ?>
It sends the email only its completely blank, even though it says "your mail was sent successfully"
Im a complete NOOB at this code stuff and Im completely lost without frontpage extensions. I am trying to make this form work for my business, any help?