Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Control Array

Posted on 1999-06-22
Medium Priority
Last Modified: 2010-04-09
I want to use an  array of check boxes and read the checked items in VB Script and J-Script. How can i do that. I have the code , it is creating check boxes. But i cannot read  the values  in Java Script and VB Script.
set conn = server.CreateObject("adodb.connection") "DSN=test;"
sqlstr = "select * from CheckBox "
 set rs = conn.Execute(sqlstr)
 i = 1
 while not rs.eof  
  CheckBoxStr = CheckBoxStr &"<INPUT id=chkType  name= chkType"
   CheckBoxStr = CheckBoxStr & "  type=checkbox value = " & rs("id")
   CheckBoxStr = CheckBoxStr & " > " &  rs("Text")
   i = i + 1
Response.Write CheckBoxStr
Question by:mganesan
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment

Accepted Solution

Bhargava earned 400 total points
ID: 1851065
<%@ Language=VBScript %>
Response.Write Request.form("chkType")

This will output values of all the selected checkboxes.

basically use Request.form("chkType") to access the variables when submiting a form using the post and Request.querystring("chkType") when submitting the form using the get (the default).

Hope this helps :-)

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…

660 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question