<form action="" method="POST">
    <input type="checkbox" value="1" name="check_box_list"/>1
    <input type="checkbox" value="2" name="check_box_list"/>2
    <input type="checkbox" value="3" name="check_box_list"/>3
    <input type="checkbox" value="4" name="check_box_list"/>4
    <input type="submit" value="提交">
</form>

 

#通过request.REQUEST.getlist取到list形式的提交结果
def getresult(request):
    check_box_list = request.REQUEST.getlist("check_box_list")

 

相关文章:

  • 2021-11-21
  • 2021-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-01-18
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
猜你喜欢
  • 2021-06-07
  • 2022-12-23
  • 2022-01-19
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案