PDA

You are currently viewing a search engine-friendly (archive) version of this page.

View Full Version : make a checkbox uncheck when another is selected..


Trevilio
December 19, 2001, 08:01 am
I wasn't sure which section to post in so i guessed that this is the closest one...


I have a questionnaire form in an asp file that enters the collected data into an access database. Within that form there are several checkboxes in several different groups and it sends "yes" to a "yes/no" field in the database.

That all works perfectly bar one major problem:

There are, say for example, 5 checkboxes in one question (e.g. when would you like to be contacted? now, 1 hour, tomorrow etc). At present you can select as many check boxes as you would like but obviously that is no good to me.

So how would i set a checkbox to turn off when another is selected?

I know how you would do this in html (just use radio buttons to and set them to have the same name field) but in this case the name field is being used by the asp code to tell it where to send the data.

I hope someone can make some sense of this

manunkind
December 19, 2001, 12:36 pm
Trevilio,

I'm moving this to the <a href="http://www.helpfromtechs.com/ubb/ultimatebb.php?ubb=forum&f=8" target="_blank">Webmasters Forum</a>. You'll have a better chance in there.

I personally know nothing about ASP, but can you post a link to the site? Or at least a snippet of code that we can see?