Click to See Complete Forum and Search --> : Table cell values


renu
02-13-2003, 03:20 PM
Hi,
I am just starting to learn html. I want to load table cells using a loop like a for loop and give cell values depending on some calculations. My problem is that I have not been able to find any example which uses loops to fill table. Can somebody direct me an example similar to my problem?

thanks.

renu
02-13-2003, 07:08 PM
Thanks.

Part of my problem is solved. But now the big question is - how do I avoid giving 50 tr tags if I want 50 rows? In my case the number of rows depends on some user input ? Now if user wants to see 100 rows then what do I do? Isn't there any way of defing a table similar to array? i.e. all the rows have same structure but there are 'n' number of rows and I gave to give only one <tr> .