怎样弄一个简单的html5表单

怎么样弄一个简单html5表单
慕粉4377749
浏览 1713回答 2
2回答

大写的王

<form action='' method='post'><input type='text' value='hello world'><input type='submit' value='提交'></form>

rubyc

<form method="post" action="reg.php">     <table border="1" cellspacing="0" cellpadding="0" width="80%" bgcolor="#ABCDEF">         <tr>             <td align="right">用户名</td>             <td><input type="text" name="username" id="" placeholder="请输入合法的用户名...">用户名首字母以字母开始,并且6-10</td>         </tr>         <tr>             <td align="right">密码</td>             <td><input type="password" name="password" placeholder="请输入密码...">密码长度6-10</td>         </tr>         <tr>             <td align="right">确认密码</td>             <td><input type="password" name="pw" placeholder="请输入确认密码...">两次密码一致</td>         </tr>         <tr>             <td align="right">邮箱</td>             <td><input type="text" name="email" id="" placeholder="请输入合法邮箱..">邮箱必须包含@</td>         </tr>         <tr>             <td align="right">兴趣爱好</td>             <td>                 <input type="checkbox" name="fav[]" id="" value="php">PHP                 <input type="checkbox" name="fav[]" id="" value="java">JAVA                 <input type="checkbox" name="fav[]" id="" value="ios">IOS                 <input type="checkbox" name="fav[]" id="" value="c">C语言                 <input type="checkbox" name="fav[]" id="" value="c++">C++<br>                 <input type="checkbox" name="fav[]" id="" value="swift">Swift                 <input type="checkbox" name="fav[]" id="" value="meteor">Meteor                 <input type="checkbox" name="fav[]" id="" value="nodejs">NodeJS                 <input type="checkbox" name="fav[]" id="" value="ionic">ionic             </td>         </tr>         <tr>             <td align="right">验证码</td>             <td><input type="text" name="verify"><?php echo $code ?>                 <input type="hidden" name="verify1" value=''>             </td>         </tr>         <tr>             <td><input type="submit" value="立即注册"></td>         </tr>     </table> </form>
打开App,查看更多内容
随时随地看视频慕课网APP