Hi to all. I'm new in the forum.. and i'm italian.. sorry for my english..
I need a little help..
I created a form with three fields:
1)input text
2)radio button
3)a multiselect dropdown with this code:
Code: Select all
<select name="operatore[]" size="5" multiple="multiple">
The form correctly saves the data in the database.
But, there is a way to save a record for each option selected in dropdown multiselect?
Example:
now the table is:
id > 1
name > paolo (from input text)
sex > male (from radiobutton)
operatore > 1, 2, 3 (from the dropdown multiselect array operatore[])
i would like:
id > 1
name > paolo (from input text)
sex > male (from radiobutton)
operatore > 1 (the first value of the array)
id > 2
name > paolo (from input text)
sex > male (from radiobutton)
operatore > 2 (the second value of the array)
id > 3
name > paolo (from input text)
sex > male (from radiobutton)
operatore > 3 (the third value of the array)
It's possible??
Thank's a lot a sorry for my english...😟
I need a little help..
I created a form with three fields:
1)input text
2)radio button
3)a multiselect dropdown with this code:
Code: Select all
<select name="operatore[]" size="5" multiple="multiple">
The form correctly saves the data in the database.
But, there is a way to save a record for each option selected in dropdown multiselect?
Example:
now the table is:
id > 1
name > paolo (from input text)
sex > male (from radiobutton)
operatore > 1, 2, 3 (from the dropdown multiselect array operatore[])
i would like:
id > 1
name > paolo (from input text)
sex > male (from radiobutton)
operatore > 1 (the first value of the array)
id > 2
name > paolo (from input text)
sex > male (from radiobutton)
operatore > 2 (the second value of the array)
id > 3
name > paolo (from input text)
sex > male (from radiobutton)
operatore > 3 (the third value of the array)
It's possible??
Thank's a lot a sorry for my english...😟