The thing is that I created a form a few days ago and it worked fine, but I went to test it today and it gets the data blank.
Could you help me, please?
<?php var_export($_POST); exit;
$name = $_POST['name'];
$visitor_email = $_POST['email'];
$message = $_POST['message'];
$email_from = $_POST['email'];
$email_subject = "New Form Submission";
$email_body = "Nome: $name.\n".
"Email: $visitor_email.\n".
"Menssagem: $message.\n";
$to = "[email protected]";
$headers = "From: $email_from \r\n";
$headers .= "Reply-To: $visitor_email \r\n";
mail($to,$email_subject,$email_body,$headers);
header("Location: contato.php")
?>
<div class="contact-form">
<form id="contact-form" method="post" action="contact-form-handler.php">
<input name="name" type="text" class="form-control" placeholder="Seu nome" required> <br>
<input name="email" type="email" class="form-control" placeholder="Seu email" required><br>
<textarea name="message" class="form-control" placeholder="Mensagem" row="4" required></textarea>
<input type="submit" class="form-control submit" value="Enviar mensagem">
</form>
</div>