Solved

classic asp checkbox uncheck and check

Posted on 2016-09-15
2
68 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.
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
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 style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

808 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