ul in the form not sending to the $_POST

后端 未结 4 1008
情话喂你
情话喂你 2020-12-18 09:16

I have this ul in my form

4条回答
  •  太阳男子
    2020-12-18 09:51

    The

      and
    • elements are not form elements, so they will not be submitted when POSTing the form. You either need to convert the
    • values to be form controls e.g. radio buttons or selects, or, add some event handling javascript to the
    • elements so that when they're selected (or whatever event is performed on them) a hidden field is updated with the value. The hidden form field will get submitted in the POST.

提交回复
热议问题