|
BeTheBall -> RE: Sending checkbox to another page (1/22/2006 11:05:35)
|
Checkboxes are a little different than other form fields in that nothing is sent unless the box is checked. You must assign a value attribute to the checkbox and whatever that value is, is what will go to the next page, database, etc. Here are a couple of examples. Suppose you are selling t-shirts and you have several checkboxes for the color, a box named red, a box named blue and a box named green. The value of each checkbox is True. If the user checks each box, then you have three form field values of true that are sent to the next step. The other example is almost the same except instead of the boxes being named, red, blue and green, they are all named color and instead of the values being True, the value of one is red, another blue and the last green. If again the user checks all three boxes, what is sent to the next page is a comma-delimited string that looks like this: red,blue,green I suspect this may not directly answer your question, but may give you some insight into how checkboxes behave and help you do what you need. If not, feel free to clarify your needs.
|
|
|
|