Re: [PHP] Variable name as a string

2008-08-27 Thread Hélio Rocha
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 <[EMAIL PROTECTED]> wrote: > Could someone tell me how to get the name of a variable as a st

[PHP] Variable name as a string

2008-08-27 Thread ioannes
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