mpnut
MIS
- Aug 27, 2003
- 242
Can anyone tell me why this isn't working. What is supposed to happen is a button is clicked and the page is should highlight in red the row that was clicked. For some reason I can't get it to work.
Here is the script:
<body bgcolor="#CCCCCC">
<h1>TEST</h1>
<table>
<%
dim cont
dim good
dim nbr
dim nmbr
cont=10%>
<%
good=Request.Form("nmbr")
%>
<%nbr=0%>
<%Do Until nbr=10%>
<%nbr=nbr+1%>
<%
IF good=nbr THEN
colr="#FF0000"
ELSE
colr="#CCCCCC"
END IF
%>
<tr bgcolor=""<%=colr%>"">
<td><form action="Test.asp" method="post" style="margin:0px; padding:0px;"><input type="submit" value="View" /><input type="hidden" name="nmbr" value="<%=nbr%>" /></form></td><td><%=nbr%></td><td>TEST</td>
</tr>
<%Loop%>
</table>
</body>
What am i missing?
Here is the script:
<body bgcolor="#CCCCCC">
<h1>TEST</h1>
<table>
<%
dim cont
dim good
dim nbr
dim nmbr
cont=10%>
<%
good=Request.Form("nmbr")
%>
<%nbr=0%>
<%Do Until nbr=10%>
<%nbr=nbr+1%>
<%
IF good=nbr THEN
colr="#FF0000"
ELSE
colr="#CCCCCC"
END IF
%>
<tr bgcolor=""<%=colr%>"">
<td><form action="Test.asp" method="post" style="margin:0px; padding:0px;"><input type="submit" value="View" /><input type="hidden" name="nmbr" value="<%=nbr%>" /></form></td><td><%=nbr%></td><td>TEST</td>
</tr>
<%Loop%>
</table>
</body>
What am i missing?