Page 1 of 1

Dynamic creation of HTML form elements with PHP

Posted: Thu Nov 10, 2005 4:05 pm
by dallasx
I don't know what to search for when I want to make a user-friendly form (for a gamut of non-computer savvy people, yeah, I get all kinds).

I'd like to display a form, that's the easy part. Here are my input fields.
[text input: job number] [text input: work code] [text input: hours worked]

When the first field is clicked, I'd like a new row of fields to appear below it, dynamically adding rows of fields until the user submits the form.

The reason is that on any given day, anyone can work on X amount of projects, so I can't set a specific number of fields. Can this be done with PHP?

Posted: Thu Nov 10, 2005 4:08 pm
by feyd
nope. That's Javascript's area of control.

We've discussed dynamic creation of form elements previously in the Client Side board.