php insert multiple values into separate rows in mysql table

后端 未结 2 1688
失恋的感觉
失恋的感觉 2020-12-22 11:30

I have a PHP form with various types of input fields (checkbox, drop-down, radio, auto-complete, etc.) What I would like to do is get users input(which might be more than on

2条回答
  •  心在旅途
    2020-12-22 11:37

    The id for the question can be array at the backend side. You can iterate over the array and insert questions in loop.

    The other way is to compose the variable names in for loop by using variable variables.

    Array seems like a cleaner code to me. :)

提交回复
热议问题