This basic contact form on my web page is not working. This seems pretty basic, but for some reason it’s not sending the form. Any Help/Suggestions would be greatly appreciated - TIA.
Regards,
Brian
Here is the form code:
[color=Blue]<form method=“post” action=“contactme.php” >
<p align=“center”>
<b><font size=“2” face=“Verdana”>Name: <input type=“text” name=“name” size=“30”/>
<br>
<br>
Phone: <input type=“text” name=“phone” size=“30”>
<br>
<br>
Email: <input type=“text” name=“email” size=“30”>
<br>
<br>
Message: <textarea name=“message” cols=“30” rows=“5”> </textarea>
<br>
<br>
<input type=“submit” value=“Send Form”> </font></p>
</form>[/color]
and the PHP form code:
[color=Blue] <?PHP
if(isset($_POST[‘submit’])) {
$to = "brian@thedentistschoice.com";
$re = “Feedbackfromcontactpage”;
$name_field = $_POST[‘name’];
$phone_field = $_POST[‘phone’];
$email_field = $_POST[‘email’];
$message = $_POST[‘message’];
$body = "From: $name_field
E-Mail: $email_field
Message: $message
Phone: $phone_field
";
echo “Data has been submitted to $to!”;
mail($to,$re,$body);
} else {
echo “Thank you for submitting your contact information. We will contact you as soon as possible.”;
}
?>[/color]