第三天在PHP中文网学习:
代码:
实例
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <form action="" method="post"> <table border="0" bgcolor="#F9F900" align="center" > <caption><h2>用户注册</h2></caption> <tr> <td width="70" align="right"><label for="name">注册邮箱</label></td> <td width="500" for="name" align="left"> <input type="text" name="name" id="name" placeholder="demo@demo" > </td> </tr> <tr> <td width="70"> <label for="password">登录密码</label> </td> <td width="500"> <input type="password" id="password" placeholder="密码不能多于7位" align="center"> </td> </tr> <tr> <td>性别:</td> <td > <input type="radio" name="sex" checked="">男 <input type="radio" name="femal">女 <input type="radio" name="secret">你猜 </td> </tr> <tr> <td>兴趣:</td> <td > <input type="checkbox" name="happy[]" value="PHP" checked="">PHP <input type="checkbox" name="happy[]" value="Java">Java <input type="checkbox" name="happy[]" value="C++">C++ <input type="checkbox" name="happy[]" value="python">python </td> </tr> <tr> <td>熟练程度:</td> <td > <select> <option value="" selected="">无基础小白</option> <option value="">小白</option> <option value="">刚入门</option> </select> </td> </tr> <tr> <td>头像:</td> <td ><img src="images/13.png" height="30"><input type="file" id="" name="photos" accept="image/*"></td> </tr> <tr> <td></td> <td align="center"><textarea name="common" id="common" rows="10" cols="60" placeholder="文明上网,文明用语"></textarea></td> </tr> <tr> <td> </td> <td><input type="submit" name="submit" value="提交"> <input type="reset" name="reset" value="重置"></td> </tr> </table> </form> </body> </html>
运行实
例 »
点击 "运行实例" 按钮查看在线实例