How do I create an a array of hidden variable of the same name on the fly?
How to create multiple hidden variables on the fly? I need to display about 20 or more rows in a page. At the beginning of each row, there is a checkbox that user can select. All the 20 checkbox has the same name called "visiblerows", so it becomes an array. Once the user hit the submit button I need to find which rows are selected and create an array of hidden variable, let us call it as "aselectedrows", assigned with the selected values. My server side code looks for this hidden variable. The form uses POST method to make the server call. How do I create an a array of hidden variable of the same name on the fly? Your help would be greately appreciated.