I have this asp code on my page
<%
rs2.movefirst
while not rs2.eof
%>
<input type="hidden" value ="<%=rs2("set_id")%>-<%=rs2("set_name")%>" name = "lnksched"><a href="#" onclick="document.forms[0].submit();return false;"><%=rs2("set_name")%></a><br>
<%
rs2.movenext
wend
%>
that translate to this
<input type="hidden" value = "1-Assets" name = "lnksched"><a href="#" onclick="document.forms[0].submit();return false;">Assets</a>
<input type="hidden" value = "2-Liabilities" name = "lnksched"><a href="#" onclick="document.forms[0].submit();return false;">Liabilities</a>
<input type="hidden" value = "3-Profit" name = "lnksched"><a href="#" onclick="document.forms[0].submit();return false;">Profit</a>
<input type="hidden" value = "4-Loss" name = "lnksched"><a href="#" onclick="document.forms[0].submit();return false;">Loss</a>
When I click on each link, I expect to pass the individual value, but I am getting this string everytime: 1-Assets,2-Liabilities,3-Profit,4-Loss
How can I pass just the value of the link I clicked?
<%
rs2.movefirst
while not rs2.eof
%>
<input type="hidden" value ="<%=rs2("set_id")%>-<%=rs2("set_name")%>" name = "lnksched"><a href="#" onclick="document.forms[0].submit();return false;"><%=rs2("set_name")%></a><br>
<%
rs2.movenext
wend
%>
that translate to this
<input type="hidden" value = "1-Assets" name = "lnksched"><a href="#" onclick="document.forms[0].submit();return false;">Assets</a>
<input type="hidden" value = "2-Liabilities" name = "lnksched"><a href="#" onclick="document.forms[0].submit();return false;">Liabilities</a>
<input type="hidden" value = "3-Profit" name = "lnksched"><a href="#" onclick="document.forms[0].submit();return false;">Profit</a>
<input type="hidden" value = "4-Loss" name = "lnksched"><a href="#" onclick="document.forms[0].submit();return false;">Loss</a>
When I click on each link, I expect to pass the individual value, but I am getting this string everytime: 1-Assets,2-Liabilities,3-Profit,4-Loss
How can I pass just the value of the link I clicked?