HTML FORMS experts needed (wimps need not apply)

IaPuP

Golden Member
Mar 3, 2000
1,186
0
0
I'm trying to input a series of INPUT CHECKBOXES as a single item.

I've seen it done on other pages.

For this example, there are 6 checkboxes.

I have seen the browser submit these as a single variable.

For example, I check the first 4 and then leave the last 2 unchecked, the HTTP GET variable is set like this:

?checkbox=111100

If the first and last checkboxes are checked and the remainder are not you get

?checkbox=100001

I know it's possible. I've seen it done on several different browsers without any scripting- I dug through the HTML 3.2 and 4.0 specs for an hour today and couldn't find anything

I want to be able to submit a form via HTTP GET that can handle an arbitrarily large number of checkboxes. I don't want to have to deal wth fetching 30 different variables and coming up with unique names for all of them.

Any suggestions?

Thanks,
Eric
 

Mitzi

Diamond Member
Aug 22, 2001
3,775
1
76
I wouldn't of though that was possible without any scripting. In your example, are you sure the value of ?checkbox isn't parsed and generated by a script before submission - perhaps theres a little javascript or something to build up the variable???

If not I'd sure like to know how to do it. I guess I must be a wimp :eek: :(
 

IaPuP

Golden Member
Mar 3, 2000
1,186
0
0
After spending several hours poking around, I'm not entirely sure it's possible without a bit of javascript either.

I recall opening the source for that page and noticing a tag something like PANEL or PANE . Sounds a lot like Java to me.

hmpf I was hoping there was some magical HTML that could do it for me. Thanks for the help.

Eric