PHP表单中的textarea为什么只能输入一行?而且还是只能在中间输入。
这是程序执行图
下面是代码:
<form action="temp.php" method="post">
<input type="textarea" name="name" style="width:300px;height:100px"/>
<input type="submit" value="提交"/>;
</form>
为什么只能在框框的中间输入呢?而且不会换行。
这是程序执行图
下面是代码:
<form action="temp.php" method="post">
<input type="textarea" name="name" style="width:300px;height:100px"/>
<input type="submit" value="提交"/>;
</form>
为什么只能在框框的中间输入呢?而且不会换行。
textarea 不是用的input
而是
<textarea name="name" style="width:300px;height:100px"></textarea>