Re: regenerate variables?
| From: | Rasmus Lerdorf | Date: | Sat, 25 Aug 2001 16:39:54 +0000 |
| Subject: | Re: regenerate variables? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-64443@lists.php.net to get a copy of this message | ||
http://www.php.net/manual/de/language.variables.variable.php
On Fri, 24 Aug 2001, Christian Springub wrote:
> Hi,
>
> I know, the topic looks freaky, let me explain.
> I have a formular with many input fields called for example "firm[0]",
> "firm[1] etc.
> Now I submit and have the values of this variables. But I have so many
> input fields, that I want to generate the variables by reading the
> names from a mysql table.
> I have an table with a field called "firm". Now I read the name "firm"
> from the table in a variable called $field, put in in a loop an do
> like this: echo "$" . $field[$counter]; Now I have back my "$firm[0]".
> But how can I generate from this a variable to get back my value of
> this?
>
> I hope you understand me, great thanks for any help, because I get
> nearly crazy from this problem.
>
> best regards,
> Christian Springub
>
>