Solved

classic asp checkbox uncheck and check

Posted on 2016-09-15
2
76 Views
Last Modified: 2016-09-15
We want to make in classic asp a form similar like this:

<form method=post>
<input type="checkbox" name=check1 value="the first value">
<input type="checkbox" name=check1 value="the second value">
<input type="checkbox" name=check1 value="the third value">
<input type="checkbox" name=check1 value="the fourth value">
<input type="checkbox" name=check1 value="the fifth value">
<input type="checkbox" name=check1 value="the sixth value">
</form>

Open in new window


Now what we want is:

1.-Have the sixth value selected by default and the others unchecked.
2.-If the user selects any value the other values must be unchecked in other words only one value can be selected.

How can we do that if possible with code example? Because like it is the user is able to check all values at same time and we don't want that if the user checks one the other values must be unchecked. That value later we'll pass through VBscripr to same page or post form to another .asp page and the request of the values,

Thank you
0
Comment
Question by:Alex E.
[X]
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
2 Comments
 
LVL 33

Accepted Solution

by:
Big Monty earned 500 total points
ID: 41800718
Why not just use radio buttons?
1
 

Author Closing Comment

by:Alex E.
ID: 41800729
You are right worked perfect with radio buttons!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

726 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