<form action="user.php" method="post">
<h2>用户注册</h2>
<div>
<label for="name">用户名:</label>
<input type="text" id="name" placeholder="用户名不能为空" name="username">
</div>
<div>
<label for="userpsw">密码:</label>
<input type="password" name="password" placeholder="密码不能为空" id="userpsw">
</div>
<div>
<label for="secrecy">性别:</label>
<input type="radio" name="sex" id="male" value="male"><label for="male">男</label>
<input type="radio" name="sex" id="female" value="female"><label for="female">女</label>
<input type="radio" name="sex" id="secrecy" value="secrecy" checked><label for="secrecy">保密</label>
</div>
<div>
<label for="">爱好:</label>
<input type="checkbox" name="hobby[]" id="game" value="game"><label for="game">游戏</label>
<input type="checkbox" name="hobby[]" id="Sports" value="Sports"><label for="Sports">体育</label>
<input type="checkbox" name="hobby[]" id="draw" value="draw"><label for="draw">画画</label>
<input type="checkbox" name="hobby[]" id="book" value="book"><label for="book">看书</label>
</div>
<div>
<label for="">学历:</label>
<select name="edu" id="">
<option value="1">小学</option>
<option value="2">初中</option>
<option value="3">高中</option>
<option value="4">大学</option>
</select>
</div>
<div>
<button>提交</button>
</div>
</form>
<a href="../0705/demo4.html" target="user">用户注册</a>
<br>
<iframe srcdoc="请点击上方进行注册" frameborder="2" name="user" width="500" height="500"></iframe>