创建表单-PHP与Web页面交互-学通PHP http://www.xn--ttss6e.net
  • 生活导航网杭州第一网奎屯门户
  • 创建一个表单,表单元素包含文本域.单选按钮、复选按钮、下拉列表和提交按钮等。

    用户名:
    密码:
    学历:
    爱好
    个人简历:

    <form id="form1" name="form1" method="post" action=""> <table width="286" border="0" align="center"> <tr> <td width="72"><span class="STYLE1">用户名:</span></td> <td width="204"><label> <input type="text" name="textfield" /> </label></td> </tr> <tr> <td><span class="STYLE1">密码:</span></td> <td><label> <input name="radiobutton" type="radio" value="radiobutton" checked="checked" /> <input type="radio" name="radiobutton" value="radiobutton" /> <span class="STYLE1">女</span></label></td> </tr> <tr> <td><span class="STYLE1">学历:</span></td> <td><label> <select name="select"> <option>高中</option> <option>大专</option> <option>本科</option> <option>博士</option> </select> </label></td> </tr> <tr> <td><span class="STYLE1">爱好</span></td> <td><label> <input type="checkbox" name="checkbox" value="checkbox" /> <span class="STYE1">打球</span> <input type="checkbox" name="checkbox2" value="checkbox" /> <span class="STYE1">看书</span> <input type="checkbox" name="checkbox3" value="checkbox" /> <span class="STYLE1">听音乐</span></label></td> </tr> <tr> <td><span class="STYLE1">个人简历:</span></td> <td><label> <textarea name="textarea" rows="5"></textarea> </label></td> </tr> <tr> <td colspan="2" align="center"><label> <input type="submit" name="Submit" value="提交" /> </label> <label> <input type="submit" name="Submit2" value="取消" /> </label></td> </tr> </table> <p> <label></label> </p> </form>
    http://www.xn--ttss6e.net http://www.xn--ttss6e.net
  • 创建表单