Re: Variable Variables Help Please

From: Date: Thu, 31 Aug 2000 07:19:15 +0000
Subject: Re: Variable Variables Help Please
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-14532@lists.php.net to get a copy of this message
Thank you everybody. Thank you for your great help and timely assistance. I made a small mistake. I forgot to set $value_1 and $value_2 to anything, so that part would simply disappear on my form. I previously assumed that I made a mistake in the php source, so I kept tinkering with it. You all helped me realize my mistake wasn't where I thought it was and helped me correct it. Thank you so much. ""Jeff Lacy"" <jeffdl@mn.mediaone.net> wrote in message news:8okvhj$gb6$1@toye.php.net... > Hello. I have three variables. The first one is $times. That is the > number of times my for loop has executed. The second variable is $value_1. > This is the value of a text box, let's say Alpha. My third variable is > $value_2. This is the value of my second text box, let's say Beta. I would > like to call something like $value_$times and have it go to be Alpha on the > first time of the loop and Beta on the second time of the loop. > $value_$times doesn't work. Does anyone know what would work? Thank you in > advance for all of your help. > > P.S. I have tried $value_{$times} on the recommendation of a friend, but, > unfortunately, that doesn't work. > > P.S.S. If I don't make any/much/enough sense, please reply to this or > email me at jeffdl@mn.mediaone.net. Thank you! > > :-) > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#14532) next »