Advice : Form data entry. First row then next appears

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
facets
Forum Contributor
Posts: 273
Joined: Wed Apr 13, 2005 1:53 am
Location: Detroit

Advice : Form data entry. First row then next appears

Post 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.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post 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.
Post Reply