Posted by Norman Peelman on 08/18/05 06:10
"Dave Thomas" <gentso@hotmail.com> wrote in message
news:3bGdnT-qq-O9L57eRVn-jQ@adelphia.com...
> I have:
> $this_array = array($test_year, $test_color, $test_food)
>
> I want to access another variable based on $test_year, only it will be
> called $test_month (test could be something else). $test_year is a form
> and I want to access $test_month.
>
> If I use $this_array[1] then I am getting the actual value of the form.
> I want to get the name of the variable I am accessing!
Out of your rather confusing message I am getting that you need to use
the 'key( )' array function... go to www.php.net and do a search for 'array'
and you'll get all the functions you need.
Norm
---
FREE Avatar hosting at www.easyavatar.com
Navigation:
[Reply to this message]
|