Mailing List Archive



Back to the month index Back to the list index

Fernando Maior (fmaior@upol.com.br)
Mon, 26 Apr 1999 11:27:43 -0300


Message-ID: <372477DF.F8900086@upol.com.br>
Date: Mon, 26 Apr 1999 11:27:43 -0300
From: Fernando Maior <fmaior@upol.com.br>
Subject: Re: mSQL: Checkboxes checked?

Dear Heiko,

May be you could help us a little by telling which CGI programming language you
are using. The most common are perl, w3-msql and php3. I have an answer for
php3, if you are interested.

Bye,
Fernando Maior

"Spallek, Heiko" wrote:

> Hi,
>
> Nobody had any idea to my problem so far, please let me rephrase it:
>
> I am trying to submit an HTML form which includes dynamically created
> checkboxes. The receiving HTML page includes a script which has to determine
> which checkbox was checked.
>
> If I would know the names of the checkboxes during development time I could
> check for each checkbox
>
> if($checkboxname=="on"){ ....
>
> However, the names of the checkboxes are only known at runtime (stored in
> database table).
>
> Thus, I would have to check during looping through the rows of the table
>
> Pseudo: if the variable called the same as the stringvalue of the particular
> row=="on"
> something like if($$checkbox[0]=="on"){...
>
> Any idea how to make from a stringvalue of an array a variable in mSQL???
>
> Thanks!
> Heiko
>
> Operating system: SunOS uw 5.5.1 Generic_103640-24 sun4u sparc SUNW,Ultra-1
> mSQL version: 2
>
> --
> Heiko Spallek, DMD, Ph.D.: heiko@spallek.com
> Asst. Professor
> Department of Dental Informatics
> Temple University School of Dentistry
> Try: http://www.temple.edu/dentistry/di/