senaraio<br>user enters a part of a "part number" in a form on a an .asp page. A second .asp page returns a list of results in a table, this works great.<br>So I have a list of matching parts in a Table format from one to many parts returned.<br>One of the cells in the table is a submit button<br>Which is labeled "Add to Cart" so there is a button for every row in the table.<br>Now How can I get the part number from th eTable when they user presses say the tenth button down the list.<br>Or is there a better way fo doing it<br>Here is some of my code.<br>-----------------------<br><html><head><br><TITLE>Parts respond.asp</TITLE><br></head><br><br><body bgcolor="#FFFFFF"><br><br><br><br><br><%pnum=request.querystring("PartNumber"%><br><%desc=request.querystring("Description"%><br><%<br>Set Conn = server.CreateObject("ADODB.Connection"<br>Conn.Open "driver=SQL Server;server=smallbserver;uid=sa;pwd=;database=Universal;"<br>Set RS = Conn.Execute("SELECT Count(*) AS Recs FROM Inventory Where [Part Number] Like N'" & pnum & "%' And [Description] Like N'" & desc & "%'"<br>Set RS1 = Conn.Execute("SELECT [Part Number], [Description], [ListPrice] FROM Inventory Where [Part Number] Like N'" & pnum & "%' And [Description] Like N'" & desc & "%'"<br>%><br><form action="shopcart.asp" method=get><br><br><table border="1" width="72%"><br> <tr><br> <th width="100%" align="center" bgcolor="#C0C0C0" valign="middle"><br> <p align="left"><%Response.Write "Records returned " & RS("Recs"%></th><br> </tr><br></table><br><table border="1" width="72%" bordercolor="#0066FF"><br> <tr><br> <td width="10%" align="left" bordercolor="#000000" bgcolor="#000000"><br> <p align="left"><font color="#FFFFFF">Add to PO</font></td><br> <td width="20%" align="left" bordercolor="#0066FF" bgcolor="#000000"><br> <p align="left"><font color="#FFFFFF">Part Number</font></td><br> <td width="55%" align="left" bordercolor="#000000" bgcolor="#000000"><br> <p align="left"><font color="#FFFFFF">Description</font></td><br> <td width="15%" align="right" bordercolor="#000000" bgcolor="#000000"><br> <p align="left"><font color="#FFFFFF">Price</font></td><br> <tr><br> <td width="10%" align="left"> </td><br> <td width="20%" align="left"> </td><br> <td width="55%" align="left"> </td><br> <td width="15%" align="right"> </td><br> </tr><br> <br><%<br>If Not RS1.EOF Then<br> Do%><br> <tr><br> <td width="15%" align="left"><br> <p align="center"><input type="submit" value="Add to PO" name="addtopo"></td><br> <td width="25%" align="left"><br> <p align="center"><%Response.Write RS1("Part Number"%></td><br> <td width="60%" align="left"><br> <p align="center"><%Response.Write RS1("Description" %></td><br> <td width="60%" align="right"><br> <p align="center"><%Response.Write RS1("ListPrice" %></td><br><br> </tr><br> <% RS1.Movenext<br> Loop Until RS1.EOF<br>Else<br> <br> Response.Write("No records or something" <br>End If<br>%><br></table><br><br><p align="left"><font size="1">Written by: Douglas Poston <a href="mailto:<A HREF="mailto:dposton@universal1.com">dposton@universal1.com</A>"><A HREF="mailto:dposton@universal1.com">dposton@universal1.com</A></a></font></p><br><br></body></html><br>---------------------------<br><br> <p>DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br> Ask me how Bar-codes can help you be more productive.