Mailing List Archive



Back to the month index Back to the list index

David J. Hughes (bambi@Hughes.com.au)
Wed, 28 Apr 1999 12:39:34 +1000 (EST)


Date: Wed, 28 Apr 1999 12:39:34 +1000 (EST)
From: "David J. Hughes" <bambi@Hughes.com.au>
Subject: Re: mSQL: Checkboxes checked?
Message-ID: <Pine.BSF.3.96.990428123648.1669F-100000@fawn.hughes.com.au>

On Fri, 23 Apr 1999, Spallek, Heiko wrote:

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

You can do something like

        $value = expandText("$checkbox[0]");
        if ($value == "on")
        {
                .....
        }

It isn't the indended use for expandText but it'll work. It was intended
to be used like

        $first = "David";
        $last = "Hughes"
        $message = "Hello $first $last, welcome to the show";
        $output = expandText($message);

Bambi
...