Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Matthew Eichler — — source: Informix-list mailing list archive (1991-1998)
At 03:56 PM 5/26/96 -0700, jkormann@beast.Trenton.EDU (Joseph Kormann) wrote:
>>Hi. I'm using the CGIKit that Informix gives away and I'm having a
>>problem getting a CEsql program to read multiple NAMEs from an INPUT.
>>
>>Snippet:
>>Browser Type:<br><br>
>><input type="checkbox" name="browser_type" value="Netscape"> Netscape<br>
>><input type="checkbox" name="browser_type" value="Lynx"> Lynx<br>
>><input type="checkbox" name="browser_type" value="Other"> Other<br>
>>
>>My question is how do I use cgi_get_form_entry to pull multiple of the
>>same name (zb.: the browse-user checks Netscape and Lynx)? Does the
>>cgi_get_form_entry do the first one then the next (and how do I get a
>>count for how many are checked)?
>>
Since we were in a hurry when when put the 2 versions of the kits out, we
neglected to add support for multiple-select inputs. Since you are already
coding in ESQL/C, you could easily write your own functions that provide a
count and select past the first entry. You need to twiddle with the singly
linked list containing the form entries starting at t_cgi_entry
*entrylist_1st (this is defined as a global variable). Examining the code
in cgigetfrment.c, you'll see it's very simple.
This is an FAQ for the kit. Suggestions can be found at:
http://www.informix.com/informix/dbweb/grail/faq2.htm#HDR7
===============================================================
Matthew Eichler Project Manager
Informix Software, Inc. MIS Technology
(415) 926-6863 FAX (415) 926-6959
matthew@informix.com http://www.informix.com
===============================================================
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.