Originally posted by GnomeSharpie
Maybe I need to be looking at Java for something like this?
Java might be a bit heavy for this one, but it could work.
An infinite set of entries presents some challenging issues whether you deploy a server or client side solution.
It would be easier if the user could enter how many entries they wished to make, then let PHP build the page based on that.
You could have either Java or javascript keep popping up a new input box until the form is submitted, which would give you a reliable method of ensuring proper data entry.
You could have PHP build a LOT of input fields (not elegant at all), or one big textarea then parse the names on the back end.
To me the textarea seems the best solution, then split it on the back end for one entry per new line. You could have javascript expand the textarea as the list grew if you wanted (not really necessary), but the form would work whether javascript was enabled or not. It would depend on the users being smart enough to put each name on its own line, though, and trusting users to enter data properly is problematic at best.
[EDIT] Upon further thought, a javascript solution would probably be best in this case. Your page is already javascript dependant, anyway, and a javascript dialog box would be the most elegant way to keep asking for more input and provide a button for when they are through. Plus, it would help validate the data.[/EDIT]