PDA

Click to See Complete Forum and Search --> : Check box Question


lirlir
Sep 17th, 2000, 03:21 AM
hi there all, watching the olympics ?

i have this problem :

in a form i have unknown number of checkboxs and a submit button,
i want to know on a submit click which checkbox is checked.

how can i do this.
it is important to know which of the checkbox because every checkbox have a different value...

hope u can help me i m realy stuck.

tnx lirlir

Skeen
Sep 17th, 2000, 04:02 AM
I would think you'd need to use a scripting language such as VB Script or Java Script to acheive this, something like:

If (Ch1) <> 0 Then
Response.Write ("CheckBox_1 Clicked)
If Else (Ch2) <> 0 Then
Response.Write ("Checkbox_2 Clicked)


etc etc, I don't know if this sytax is correct because I'm still learning VB, but I reckon you'll get a few more replies. Hope this helps,

Skeen.

lirlir
Sep 17th, 2000, 04:04 AM
hi ,

i solved my problem tnx anyway!

lirlir,
keep on watching the games...