Click to See Complete Forum and Search --> : Addin new row in table via html button


omoo
07-17-2006, 10:07 PM
Hi, not sure if this post should be in this forum or the java forum.

I need to have a table with 3 fields whereby the user can input the data and insert into my database using this website. However, I need this table to be dynamic so that after the user input the info for the first row, the user can click on add another row button and another blank row comes out. then the user can input the info for the second row and so on.
I am using ASP in the end to insert the data. I need some advice on how to create this kind of table where the user can click on one button to add another row and then able to insert all data in the entire table into database using asp.

number filename filesize
1 aaa.asp 123MB

add more data

Albatross
07-17-2006, 10:54 PM
You have to set up a form that will allow your visitors to add the data to the database tables.

omoo
07-17-2006, 11:23 PM
You have to set up a form that will allow your visitors to add the data to the database tables.


i set up the form already but i need to have a form whereby the user can input multiple rows of data and able to click on a button to add row in the form

Albatross
07-17-2006, 11:30 PM
Ah, I see. Sorry, but I can't help you much more than to say you'll have to make multiple calls to the server. ASP is not my server-side language of choice. If you can get your hands on an ASP based forum that allows people to upload attachments to the message board, you should be able to see how they do it. I know SMF (a forum written in PHP) lets members do just that. It shouldn't be too hard to reproduce in ASP.

Again, sorry I can't be of anymore help to you :(.