Re: web form data to arrays?

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

 



I got it working like this:

$counter = 0;
foreach ($arr as $value) { //make the form
...
print "<input type=\"text\" name=\"ArrUpdate[$counter][]\" value 
=\"$value[0]\">\n";

$counter++;
....
}

Now I have array $ArrUpdate which contains sub-arrays with the update data. 
This can now be processed with another foreach loop

-Will


"Jochem Maas" <jochem@xxxxxxxxxxxxx> kirjoitti 
viestissä:45AE5F69.3010808@xxxxxxxxxxxxxxxx
> Németh Zoltán wrote:
>> And how does it work? does it create a sub-array of $_POST?
>
> test it and find out:
>
> echo '<pre>'; var_dump($_POST); echo '</pre>';
>
>> And is it documented somewhere in the manual?
>
> more than likely. 

-- 
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