How do I insert a database for a survey procedure?
I rookie A, recently encountered a questionnaire survey procedures, such as how to insert a database?
Record table in database: Result
Fields inside: Q1, Q2, Q3, Q4
corresponding to four questions respectively.
Insert a record and insert four values into the corresponding field. How do we insert this? Here I only listed four questions, but there are a lot of problems behind, it is impossible to insert a corresponding one.
My idea is that name is the beginning of the Q, followed by the sequential sequence number, and the inserted data table, which corresponds to the respective. Is it possible to insert through loops?
Which hero gives an inserted code? Thanks here!!
Here are radio, there is a checkbox, behind the text, through the $_post how to deal with it?
------to solve the idea----------------------
The checkbox requires an array in order to get all the values in the form, like this Good
, all values after submission will be in $_post[], you should be able to cycle it.