I am trying to make a html and php feedback form and I am receiving an email that looks like this:
New contact form submission
From:,,
Email:,@email,
,,
My html is:
<form method="POST" action="contactform.php">
Name:<br/>
<input type="text" name="name" />
<br/><br/>
EMail:<br/>
<input type="text" name="email" />
<br/><br/>
Message: <br/>
<textarea name"message" rows="10" cols="50" />
</textarea><br/>
<input type="submit" value="submit" />
</form>
My php is:
<?php
//converting veriables
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$recipient = 'nicholasparry@me.com';
$subject="Contact Form";
//creating message
$content = "New contact form submission \n From:,$name, \n Email:,@email, \n ,$message,";
//sending message
mail($recipient, $message, $content);
?>
Can anyone help me with what is wrong?
It's:
$content = "New contact form submission \n From: ".$name.",\n Email: ".$email.", \n Message: ".$message;
and
<textarea name="message" rows="10" cols="50"></textarea>