So I have an html form
<form action="mail2.php" method="post" enctype="text/plain">
Name:<input type="text" name="name"/><br/>
Email:<input type="text" name="email"/><br/>
Comments:<br/><textarea name="comments" rows="10" cols="50"></textarea><br/>
<br/><br/>
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</form>
I just wanted to use the contents of the textarea but I can't seem to get the php function to even print them. Currently I have a simple function
<?
$comments=$_POST['comments'];
$comments=str_replace("\r\n", "<br />", $comments);
echo $comments;
echo $_POST['comments'];
?>