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.
Advice : Form data entry. First row then next appears
Moderator: General Moderators
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
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.
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.