Re: Variable name as a string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



U could use an array to keep all of your fieldnames as keys and the values
would be the values of the form inputs.
That would be very easy and with no programagic.

On Wed, Aug 27, 2008 at 3:00 PM, ioannes <ioannes@xxxxxxxxxxxxxx> wrote:

> Could someone tell me how to get the name of a variable as a string.  This
> would be useful in form submission with multiple check-boxes to match
> against database records.  At the moment I use ${"var".$ID[$x]} or someting
> like that to go through all the possible matches, but it would be quicker to
> explode the name of a checkbox like a string like cb_1 to match to record 1
> etc.
>
> There is some reason I do not use the value of the check box, but I can't
> remember it now!
>
> John
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux