On Sun, February 18, 2007 3:06 pm, jekillen wrote:
> iterator $i and given a_$i+1 names. If I test for the field names
> on post literally, a_1, a_2, a_...n, the values are getting posted
> properly.
Save yourself a LOT of headaches and index-munging and just do this:
Then:
$a = $_POST['a'];
Looks to me as if you're treating $flen as an array in one place and as a
value in another:
String here:
$flen = $_POST['flen'];// length of text field group, shows to be the
Array here:
for($i = 0; $i < count($flen); $i++)
Remove the count() and you'll probably get what you
Hello;
I am having trouble with a loop in scripts run under
php v5.1.2.
I have produced a form in a web page that has a variable number
of text fields. These fields represent the result of opening a file
and populating the fields with the corresponding value data found
in the file. The field name
3 matches
Mail list logo