Hello all,
A little explaination:
I have 10 repetitive rows for user to enter 10 different names. After entering, information will be saved into database. I'm finding a way to do as such without using the same code for all 10 rows.
The bottom is what I come up with by utilizing the FOR NEXT loop for "prodName" variable + "iCounter" to store 10 names that entered.
Question 1: Will this works? If so,
Question 2: how can I concate in such situation?
For iCounter = 1 to 10
prodName_iCounter = Replace(Server.HTMLEncode(Request ("prodName_iCounter")), "'", "''")
Next
Thanks for any help.
A little explaination:
I have 10 repetitive rows for user to enter 10 different names. After entering, information will be saved into database. I'm finding a way to do as such without using the same code for all 10 rows.
The bottom is what I come up with by utilizing the FOR NEXT loop for "prodName" variable + "iCounter" to store 10 names that entered.
Question 1: Will this works? If so,
Question 2: how can I concate in such situation?
For iCounter = 1 to 10
prodName_iCounter = Replace(Server.HTMLEncode(Request ("prodName_iCounter")), "'", "''")
Next
Thanks for any help.