日期:2014-05-17 浏览次数:20408 次
<html> <form action="test.php" method="POST"> <table> <tr> <td>Name: <input type="text" name="name" size=10 maxlength=10></td> <td><input type="submit" value="Submit"></td> </tr> </table> </form> </html>
<html> <body> <?php $name = $_POST['name']; echo 'isset($name)'.isset($name).'<br />'; echo 'isempty($name)'.empty($name).'<br />'; echo 'isset($null)'.isset($isnull).'<br />'; echo 'isempty($null)'.empty($isnull).'<br />'; ?> </body> </html>