Hello all,
I have a sql:
<input type="checkbox" value=<% =rsPro("ProdNum") %> name="productid" <% if inStr(productid,trim(rsPro("ProdNum"))) then response.write ("Checked") %>><% =rsPro("ProdName") %>
my intension is to get product name box checked if the product number matches with one of the numbers in a string that contain more than one product number such as: 1, 2, 3, ....
I was doing ok with the product numbers that smaller than 10.
The PROBLEM:
If my productid string has product number 12 for instance, the code will check prodNum box 1, 2, and 12 because all of these number are INSTR.
Is there a way to specify the INSTR code to a specific #?
Thanks!
I have a sql:
<input type="checkbox" value=<% =rsPro("ProdNum") %> name="productid" <% if inStr(productid,trim(rsPro("ProdNum"))) then response.write ("Checked") %>><% =rsPro("ProdName") %>
my intension is to get product name box checked if the product number matches with one of the numbers in a string that contain more than one product number such as: 1, 2, 3, ....
I was doing ok with the product numbers that smaller than 10.
The PROBLEM:
If my productid string has product number 12 for instance, the code will check prodNum box 1, 2, and 12 because all of these number are INSTR.
Is there a way to specify the INSTR code to a specific #?
Thanks!