[McDonnell, Larry]
... If I display <dtml-var pbtemp[sequence-index], I will see ['11', '22', '33']. I need to store each variable in the three seperate rows in a table.
Row1 pbtemp[1] Row2 pbtemp[2] Row3 pbtemp[3] I believe I need to use another <dtml-in expr="_.range(3)"> statement but I am coming up short in the correct syntax.
First you have to decide what HTML you want to produce. Then you can work out how to generate it. I take it that you want something like this - <tr><td><input name='name1'></td></tr> <tr><td><input name='name2'></td></tr> <tr><td><input name='name2'></td></tr> This is easy - you just put it into the loop you already have - <dtml-in expr="_.range(3)"> <tr><td><input type="text" name="pbtemp[sequence-index]" size="6"></td></tr> </dtml-in> There is no sense trying tp generate anything if you do not know - at least have a good idea of - the results you want. Always work out the html first. If this is not what you had in mind, then please communciate the output you want. Cheers, Tom P