我无法$_POST
在浏览器中打印 的值。这是form_methods.php
:
<html>
<head>
<title>Form Methods</title>
</head>
<body>
<form method="post" action="formoutputpage.php">
<p><input type="text" name="greeting" size="15"></p>
<p><input type="text" name="name" size="15"></p>
<p><input type="submit" name="submit" value="Salutation"></p>
</form>
</body>
</html>
这是formoutputpage.php
:
<?
echo $_POST['greeting'];
echo " ".$_POST['name'];
echo "!";
?>