passing variable sized form

后端 未结 3 1149
无人及你
无人及你 2021-01-19 17:51

I have a form that is of variable size (length) that is populated from a MySQL db. There are 4 fields that make up the information used to create a button (id, button#, nam

3条回答
  •  执念已碎
    2021-01-19 18:31

    You can assign variable names, something like a00 to a99, b00 to b99 etc. that are being sent to the server in a POST request. Then simply on the server side check which values have been set and then treat the accordingly.

    It's a bit crude, but it should work.

提交回复
热议问题