Should this be in HTML or PHP, Not sure.
But I got my contact page body –
[code]<body>
<br>
<div align=”center”>You can contact teh staffz using this contact form, just fill it out and press submit!</div><br>
<table width=”250″ border=”0″ align=”center” cellpadding=”0″ cellspacing=”0″>
<tr>
<th scope=”col”> <form method=”POST” action=”mailer.php”>
<div align=”left”>Name:<br>
<input type=”text” name=”name” size=”19″>
<br>
<br>
Your email:<br>
<input type=”text” name=”email” size=”19″>
<br>
<br>
Message:<br>
<textarea rows=”9″ name=”message” cols=”40″></textarea>
<br>
<br>
<input type=”submit” value=”Submit” name=”submit”>
</div>
</form></th>
</tr>
</table>
</body>
and mailer.php
[code=php]<?php
if(isset($_POST[‘submit’])) {
$to = “[email protected]”;
$subject = “Contact”;
$name_field = $_POST[‘name’];
$email_field = $_POST[’email’];
$message = $_POST[‘message’];
$body = “From: $name_fieldn E-Mail: $email_fieldn Message:n $message”;
echo “Data has been submitted to $to!”;
mail($to, $subject, $body);
} else {
echo “There was an error”;
}
?>
How do I make some kind of check box or somthing that lets me choose who it send it too, like – Contact : StaffMember1 or StaffMember2.
I know I got to add an if function, but I’m a newb. :]