-1
Hello.
I created a contact form on my page. Along with this contact form, I created a PHP document for it to send to my email the information that the user typed in the text inputs of the contact form. I get the email, but I don’t get the information the user typed in. Would anyone know 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);
?>