Solved

classic asp checkbox uncheck and check

Posted on 2016-09-15
2
48 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 32

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Detecting robots? 5 34
HTML Lists 3 29
Flexbox in CSS3 2 25
Adjust the position 3 0
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now