I have some HTML/PHP code. When I upload it to my site, click the send email button, it just sits there.... Why?
HTML
<form class="contact-form" action="contactform.php" method="post"></form>
<input type="text" name="name" placeholder="Full Name">
<input type="text" name="mail" placeholder="Your e-mail address">
<input type="text" name="subject" placeholder="Subject">
<textarea name="message" placeholder="Message"></textarea>
<button type="submit" name="submit">SEND MAIL</button>
</form>
PHP
<?php
if(isset($_POST['submit'])) {
$name = $_POST['name'];
$subject = $_POST['subject'];
$mailFrom = $_POST['mail'];
$message = $_POST['message'];
$mailTo = "Support@Kentuckianabowler.com";
$headers = "From: ".$mailFrom;
$txt = "You have received an e-mail from ".$name.".\n\n".$message;
mail($mailTo, $subject, $txt, $headers);
header("Location: index.html?mailsend");
}
?>