help-cgicc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[help-cgicc] Processing multiselect boxes or multiple checkboxes with th


From: Jason Pitt
Subject: [help-cgicc] Processing multiselect boxes or multiple checkboxes with the same name
Date: Tue, 19 Jul 2016 15:56:35 -0700

Hi-

It would be infinitely easier for the cgi interface that I'm writing with cgicc if I were able to have an html form that had a group of elements like:

<h1>Pizza topings:</h1>
<SELECT NAME="toppings" MULTIPLE SIZE=5>
<OPTION VALUE="mushrooms">mushrooms
<OPTION VALUE="greenpeppers">green peppers
<OPTION VALUE="onions">onions
<OPTION VALUE="tomatoes">tomatoes
<OPTION VALUE="olives">olives
</SELECT>

or alternatively a group of checkboxes that all had the same name but 
returned different values in an array, like this:

<input type="checkbox" name="remove[]" value="mushrooms">
<input type="checkbox" name="remove[]" value="green peppers">
<input type="checkbox" name="remove[]" value="onions">
<input type="checkbox" name="remove[]" value="tomatoes">
<input type="checkbox" name="remove[]" value="olives">

I can't seem to get cgicc to handle forms like this.  
Any help would be appreciated. The reason I'd like this approach
is because unlike my pizza example the form elements I'm dealing with won't be static and
will be changing all the time and I'd rather not have to write a bunch of convoluted
 code to reference the changing values by name from the form.

-Thanks
Jason


 



--
/*
Jason Pitt PhD                                   206.616.1193
Kaeberlein Lab                                   address@hidden
University of Washington
Department of Pathology
Health Sciences Building                    Box 357470
1989 NE Pacific Street
Seattle, WA 98195
*/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]