I'm a bit perplexed on how I should be adding a set of fields that the user can dynamically add additional sets to and insert into the DB.
I've attached a jpg to show you what I'm talking about.
The user can add additional managers by clicking on the 'Add Another' link and it creates a new set of fields for a manager (DB fields are: fname, lname, phone, email and table is called 'managers')
I was thinking you would set the 'name' attribute for all of them to: name="managers"
I'm slow at the coding end of things so I'm trying to ensure I'm on the right track before spending hours trying to figure out how to do an insert based on a managers array?
Is that the right way to do it or should each of the fields have their own array? Something like: fname, lname, phone and email?
Any direction, help suggestion would be much appreciated. Last part of my app to try and figure out so am hoping to finally get this put to bed.