带有复选框的表单

  1. <html>
  2.  
  3. <body>
  4.  
  5. <form name="input" action="/html/html_form_action.asp" method="get">
  6. I have a bike:
  7. <input type="checkbox" name="vehicle" value="Bike" checked="checked" />
  8. <br />
  9. I have a car:
  10. <input type="checkbox" name="vehicle" value="Car" />
  11. <br />
  12. I have an airplane:
  13. <input type="checkbox" name="vehicle" value="Airplane" />
  14. <br /><br />
  15. <input type="submit" value="Submit" />
  16. </form>
  17.  
  18. <p>如果您点击 "Submit" 按钮,您将把输入传送到名为 html_form_action.asp 的新页面。</p>
  19.  
  20. </body>
  21. </html>