【发布时间】:2011-04-30 20:36:06
【问题描述】:
我的 html 中有一个 textarea 表单。如果用户在 2 个句子之间点击输入,则数据应该被转移到我的 PHP 中。
当前如果用户输入:
Apple
Google
MS
而我的 PHP 代码是:
$str = $_POST["field"];
echo $str;
我明白了
Apple Google MS
作为输出。我希望输出是这样的
Apple
Google
MS
我该怎么办?
【问题讨论】: