Mailing List Archive



Back to the month index Back to the list index

Mitch Evans (mevans@skygames.com)
Wed, 07 Apr 1999 10:28:10 -0700


Message-Id: <4.1.19990407102736.00a9d250@skygames.com>
Date: Wed, 07 Apr 1999 10:28:10 -0700
From: Mitch Evans <mevans@skygames.com>
Subject: Re: Lite / Form Question

Sweet. That's exactly what I needed ... thanks!

                        Mitch

At 01:34 AM 4/7/99 -0400, you wrote:
>
>
>I've thought of a solution for the variable dereferncing problem that will
>work in Lite 2.0. Remembering that the problem is extracting the value of
>a variable when you know the name of the variable. So, if you have
>something like 10 variables called $form_X where X is between 1 and 10 you
>could use
>
> $count = 1;
> while( $count < 11)
> {
> $varName = "$form_$count";
> $varValue = expandText($varName);
> echo("$varName = '$varValue'\n');
> $count++;
> }
>
>You will always get it back as a char value rather than the native type of
>the value but it will work _if the variable exists_. If it doesn't then
>you'll get a value of "$form_1" or whatever returned.
>
>Wierd, but workable.
>
>
>Bambi
>..