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
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
