I'm trying to make a feature for my poll system to create a poll with unlimited options.
First off, the poll adding is formed into two steps, the first step you chose the question of the poll, then you chose how many options you want. The second step displays the amount of options I entered, say I wanted 3 options, so 3 option input fields are created.
That is all I have it down to, I can't figure out how I would insert a row into the database for each option provided, say I have 3 options, after filling them out and submitting the data, I want each option recorded into the database.
This roadblock is definitely setting me back, if possible, it would be great if somebody can provide the loop for me an explain it as well, it would help me avoid coming across a problem like this ever again. Thanks.