jrahma;11035373 wrote:
sorry I didn't understand the POST part.
name="posted_as_array_due_to_brackets[]"
if (isset($_POST['posted_as_array_due_to_brackets']))
foreach ($_POST['posted_as_array_due_to_brackets'])
jrahma;11035373 wrote:
shall I create member_skill1, member_skill2, etc? is that what you mean?
No, creating var1, var2, var3 or varA, varB, varC is almost certain to be very bad. That's when you are supposed to use arrays or some other data structure designed with aggregation in mind. Or normalizing your schema if you're dealing with it in a relational database.
How you actually go about doing it in a browser is up to you. One single select with multiple attribute set is one way. "Moving" selected choices from one select box into some kind of list (another multiple select box, several text inputs or whatever you please) is another. Adding a new select box for each desired choice is a third.