Hi, Mateen,
You should dynamically change the input file name like:
<%loopIndex = -1
do while rs.eof=false
loopIndex = loopIndex + 1
%>
<td width="11%"> <div align="center">
<INPUT id=mh1<%=loopIndex %> name=mh1<%=loopIndex %> style="WIDTH: 83px; HEIGHT: 22px" size=10>
</div></td>
<td width="11%"> <div align="center">
<INPUT id=mh2<%=loopIndex %> name=mh2<%=loopIndex %> style="WIDTH: 83px; HEIGHT: 22px" size=10>
</div></td>
<td width="11%"> <div align="center">
<INPUT id=mh3<%=loopIndex %> name=mh3<%=loopIndex %> style="WIDTH: 83px; HEIGHT: 22px" size=10>
</div></td>
<%
rs.movenext
loop
%>
to make sure each <input> field has unique name.
your projectNo cann't be passed to the next page. if you want it to be passed, you should put them in <input> tag
In the next asp page:
if the projectNo cann't be empty, you can loop the table rows like:
<%for index = 0 to MAXAVAILABLENUMBER
if request.form("projectNo" & index) <> "" then
projno = request.form("projectNo" & index)
mh1=request.form("mh1" & index )
mh2=request.form("mh2" & index )
mh3=request.form("mh3" & index )
mh4=request.form("mh4" & index )
'THEN DISPLAY THEM
else
exit for
end if
Next%>
I didn't test it, but the idea is like this.
Andraw
|