Re: Array in a Loop Question

From: Date: Tue, 26 Mar 2002 18:45:52 +0000
Subject: Re: Array in a Loop Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-90241@lists.php.net to get a copy of this message
for ($i=0;$i<$_POST[count];$i++) { echo $_POST['address' . $i] . '<br>'; } Concanate array key 'address' with $i -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 "Jeff Hatcher" <jeff@cryptocomm.com> wrote in message news:CD12F9CEA25E004C85986D15CDFE65120C822A@kermit.unets.com... I have a form that gets repeated depending on number of members in a group(1 form surrounds all members). I separate the entries by assigning a count value to the names of the inputs (Ex. <input type=text name=address$count value=>). Does anyone know how I can pull the values back out of the $_POST[]? Example of ideal scenario that does not work: case "process1": for ($i=0;$i<$_POST[count];$i++) { $_POST[address$i] }

« previous php.general (#90241) next »