Page 1 of 1

Advice : Form data entry. First row then next appears

Posted: Fri Jan 26, 2007 5:27 am
by facets
please excuse the long subject ;P

The first part of this question is probably Javascript not php but I thought i'd ask anyway. The second part IS php related.

I wish to create a form that displays a new row if the previous row is completed. I have the code ready for a single row, via a php function, but am unsure of how to achieve this.
I am also unsure of the correct terminology of it. Once that is sorted i'm assuming it would be a loop of some sort to enter each row individually into the DB?

Does anyone have any ideas or pointers I might follow?

mt, will.

Posted: Fri Jan 26, 2007 10:47 am
by Kieran Huggins
you should do this entirely within javascript, unless you want to submit the page for EVERY new line...

In javascript you could have a prototypical "form line" in a hidden div somewhere that you append a copy of to your form.

Another option is to re-think your interface... it might be more of a learning curve than you're looking for.