I want to have my form submit several rows one for each number in the number field.
In the number field, I want to enter several number separated by commas (e.g. 10,8,95,109), then a single comment (e.g. Hello). When submitted, that should insert one row per number into the db.
So in the database, this would be what is submitted.
| Number | Comment |
|---|---|
| 10 | Hello |
| 8 | Hello |
| 95 | Hello |
| 109 | Hello |
I would also like this to only accept number (and commas etc).
Thanks

explode()function. is that a solution for you?