急求 nl2br()函数的使用错误
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>nl2br()函数的使用</title>
</head>
<body>
<form method="post" action="1.php">
请输入一段包含回车的文字:<br>
<textarea name="content" cols="30" rows="6"></textarea>
<input type="submit" value="提交查看效果">
</form>
<?php
$content=$_POST["content"];
if($conten!=""){
echo"<hr>";
echo"直接输出接收到的内容:<br>";
echo $content;
echo"<br>(内容长度:".strlen($content).")<br>";
echo"<hr>";
echo"用nl2br()处理接收到的内容,然后输出:<br>";
echo nl2br($content);
echo "<br>(内容长度:".strlen(nl2br($content)).")";
}
?>
</body>
</html>
按照要求输入:子丑寅卯
辰巳午末
申酉戌亥
发现页面中除了文本框外 什么内容也没有输出 急求 该怎么解决