html注册页面-表单
16lz
2021-09-25
注册页面
<h3>用户注册</h3>
<form action="login.php" method="POST" onsubmit="return false">
<fieldset>
<legend>每项必填</legend>
<tbody>
<table>
<div>
<label for="user">账号注册</label>
<input type="text" name="username" id="user" placeholder="最少6位数" />
</div>
<div>
<label for="psw">密码</label>
<input type="password" name="psw" id="psw" placeholder="最少8位数" />
</div>
<div>
<label for="psw2">确认密码</label>
<input type="password" name="psw2" id="psw2" placeholder="最少8位数" />
</div>
<div>
<label for="email">邮箱</label>
<input type="email" name="email" id="email" placeholder="email@email.com" />
</div>
<div>
<label>性别:</label>
<select>
<option value="n1">男</option>
<option value="n2">女</option>
<option value="n3">保密</option>
</select>
</div>
<div>
<label>爱好:</label>
<input type="checkbox" name="aihao[]" id="lvyou" value="lvyou" />
<label for="lvyou">旅游</label>
<input type="checkbox" name="aihao[]" id="cang" value="cang" />
<label for="cang">唱歌</label>
<input type="checkbox" name="aihao[]" id="chi" value="chi" checked />
<label for="chi">吃</label>
</div>
<div>
<label>工作:</label>
<input type="radio" name="gz" id="qd" value="qd" />
<label for="qd">前端</label>
<input type="radio" name="gz" id="hf" value="hf" />
<label for="hf">后端</label>
</div>
<button>提交</button>
<input type="reset" value="清空" />
</table>
</tbody>
</fieldset>
</form>
<div>
<label for="">搜索联想</label>
<input type="search" name="search" list="data" />
<datalist id="data">
<option value="html">html</option>
<option value="php">php</option>
</datalist>
</div>
更多相关文章
- mysql基础语句与用户注册
- 尝试用css各类选择器添加样式制作一个注册表单
- 一个前端后端的综合实例
- 完成一个用户注册页面,对表单字段进行验证(密码长度、密码一致、验
- PHP注册验证判断
- 完成一个用户注册页面, 用xmind文件中总结的字符串函数库,对表单
- 用PHP写一个用户注册验证
- 事件注册与事件代理
- 事件注册、事件派发、事件代理与留言板