请问下,如何将一个form中得值传给本页面呢?
action 和method怎么写啊?还有就是这个值怎么得到呢?还是用$_Post[] or $_GET[] ?
<?php
echo $_POST['title'];
echo $_POST['link'];
echo "<form action=\"$_SERVER['PHP_SELF']\" method=\"post\">";
echo "<table>";
echo "<tr><td>";
echo "主题:</td><td>";
echo "<input type=\"text\" name=\"title\" size=\"20\" ></td></tr>";
echo "<tr><td>";
echo "连接:</td>";
echo "<td colspan=\"2\">";
echo "<input type=\"text\" name=\"link\" size=\"20\" ></td> </tr>";
echo "<tr><td>";
echo "<input type=\"submit\" value=\"完成\">";
echo "</td>";
echo "<td>";
echo "<input type=\"reset\" value=\"重新来过\">";
echo "</td> </tr>";
echo "</table>";
echo "</form>";
?>
为什么这样不行啊