ul in the form not sending to the $_POST

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

I have this ul in my form

4条回答
  •  情话喂你
    2020-12-18 09:45

    Are you expecting the UL to send information to the form? It will not. You need to use a form input (i.e. SELECT, TEXT, TEXTAREA, RADIO, CHECKBOX, HIDDEN, etc.)

    There is nothing in your UL -> LI HTML that will send data through the form. You will need to alter the code so when it outputs the active LI, it will output something like:

    
    

    Then it will be passed to the form.

提交回复
热议问题