I'm using PHP to process HTML forms in to a MySQL database. What I want to do is have an "add another" feature on a form. For example, a form that takes details from someone attending a conference. They fill in their details (fine so far) then they need to add a friend from the same company. So they hit the "add another button" and refill in the name fields. Basically each additional name is added as a new record in a second table (first table being for the rest of the form) so it's like a form within a form, each time the Add Another Button is hit it posts the data from the name field and display the field again but empty, so the same field is used over and over.
I've seen it done in ASP but don't know how to make it work with PHP. Anyone know or have a working example?
I've seen it done in ASP but don't know how to make it work with PHP. Anyone know or have a working example?