首先,我很抱歉提出这样一个基本问题。我试图在线搜索,但换行代码对我不起作用,也许你可以帮忙。我试图在不同的行上显示两个 POST 变量,但它没有发生:
<?php
echo $_POST['customer'];
echo "\n";
echo "\n";
echo $_POST['submit'];
?>
<html>
<form method="post" action="">
<input name="customer" type="text" value="hey" />
<input name="submit" type="submit" value="WantSubmit"/>
</form>
</html>
输出是:嘿 WantSubmit