这是我的代码:
<form action="" method="get" >
<input type="text" name="un">
<input type="password" name="un2" />
<input type="submit" value="submit" name="submit" />
</form>
<?php
$users1 = $_GET["un"];
$id = $_GET["un2"];
echo $users1;
?>
我无法通过这种方式显示它
错误:
Notice: Undefined index: un in C:\wamp\www\vas1\register1.php on line 31
第 31 行:
$users1 = $_GET["un"];