Back to the month index |
Back to the list index
|
Mitch Evans (mevans@skygames.com)
Wed, 07 Apr 1999 10:28:10 -0700
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Next message: Franz Reichardt: "Already any cure for "w3-auth returns blank page""
- Previous message: Sverre Johan Tøvik: "Update: w3-msql crashes on select which works in monitor"
- In reply to: Sverre Johan Tøvik: "w3-msql crashes on select which works in monitor"
- Next in thread: Mitch Shields: "Thinking out loud re: w3-msql"
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 QuestionSweet. 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
>..
- Next message: Franz Reichardt: "Already any cure for "w3-auth returns blank page""
- Previous message: Sverre Johan Tøvik: "Update: w3-msql crashes on select which works in monitor"
- In reply to: Sverre Johan Tøvik: "w3-msql crashes on select which works in monitor"
- Next in thread: Mitch Shields: "Thinking out loud re: w3-msql"