Forum Moderators: coopster
----
P01: <input type=\"text\" name=\"firstname[]\"/>
P02: <input type=\"text\" name=\"firstname[]\"/>
...etc...
----
This is code that processes it. A bit inefficient, I want to make this work out better since I'm calling "current" just to use a loop to do "next". I would love to just loop through the array using the index numbers in one loop.
$num = $_POST[numapplicants];
echo current($_POST[firstname]);
for ($i=0; $i<$num; $i++) {
echo next($_POST[firstname]);
}
There are a number of ways to process each element in an array, one of which is array_walk() [php.net]. Would that work for you?