Hello.
I created a contact form on my page. Along with this contact form, I created a document in PHP so that it sends to my email the information that the user typed in the text inputs of the contact form. I receive the email, but I do not receive the information that the user entered. Could anyone tell me why?
Thank you.
<form action="Send2.php" method="post" enctype="text/plain">
<input type="text" name="nome" id="nome" size="20">
<br/>
<br/>
<input type="text" name="email" id="email" size="20">
<br/>
<br/>
<input type="submit" value="Enviar" >
</form>
<?php
$name= $_POST['nome'];
$email= $_POST['email'];
echo $name;
echo $email;
?>
<?php
$to = "[email protected]";
$subject = "Contato Site - ManaSoft";
$message = "Name: ".$name. "<br/> E-mail: ".$email. "<br/>";
$header = "MIME-Version: 1.0\n";
$header .= "Content-type: text/html; charset=iso-8859-1\n";
$header .= "From: $email\n";
mail($to, $subject, $message, $header);
?>