you said:
.;;;I cannot pass a form variable. I have to pass this variable via a Querystring,
Then you said:
;;;I use method="get" I will end up with a lot of querystrings in the header, which I do not want
mmmm, why cant you pass the orderID in a form variable - hidden or passed into a
JS function?
You are:
;;;I am generating a SQL query that lists all the orders in the ORDERS table
So in your loop do something like (do not place your <form> or </form> tag in the loop):
cut n paste stat (just change the record set name)------------------
<table>
<%
If not ordersRS.EoF then
do until ordersRS.EoF %>
<input type="hidden" name="orderIds" value="<%= ordersRS(2) %>">
'now write your orders row
<tR>
<td>The orders text</td>
<tD><a href="#" onClick="myform.submit();><img src="images/someName.gif" width="160" height="16" border="0"></a>
</tR>
<% ordersRS.moveNext
loop
else
response.write "<tR><Td>No Data Found</td></tr>"
end if
%>
</table>
cut n paste finish---------------------------
Any how thats one of many ways to do it.
Wind is your friend
Matt