Hello,
As I was doing the insert form I have come across a double problem: 😕
When from a Multivalue selectlist the user chooses more than one value, how should that be coded when inserting so that they dont go to the same cell of the table of the database? That is, mysql would have to create a row for each of the values selected from that SelectList Menu, while at the same time keeping in mind the other checkboxes that hold values (task and when)
Real example: the Multivalue select list contains EthnicOrigins, so they are different and all of them are chosen, while the other checkboxes refer to the same thing like, Painting, afternoons, which are common to all of the ethnic origins. So in the table of mysql that should look like:
ID ETHNICORIGIN TASK WHEN
1 african painting afternoons
2 spanish painting afternoons
3 caucasian painting afternoons
that person wanted to insert that common task (to do painting in the afternoons) for all of the ethnic origins.
I dont know how to put it so that takes every value of the list and can send all 3 options with one submit.😕
because if you go like insert ($ ethnicorigin,....)
values $_POST[ethnicorigin]
if the user has chosen 3 ethicorigins, what does that $_POST actually contain? probably only the last selected one...
And then, I would have the other side of the problem. 😕 A search form where someone wants people to do painting in the afternoons and also doesn't care where they are from, so again searches and selects all of the values from the EthnicOrigin dropdown menu select list.
thanks a million
Alvaro