M
Mark D Smith
Hi
i am posting a hidden values called accounts which is a number of usernames
pushed to an array.
print "<input type=hidden name=accounts value=\"@accounts\">";
the page that receives the data should be able to unpack the array but i am
having problems
&ReadParse();
foreach $line(@in) {
print "$line <br>\n";
}
shows accounts=username+username_001+username_002+username_003
as expected
but
$cnt=0;
@accounts = $in{'accounts'};
foreach $line(@accounts) {
print "$line<br>\n";
$cnt++;
}
print $cnt;
username username_001 username_002 username_003
1
all on 1 line, not 1 line for each value in the array.
what have i missed
Mark
i am posting a hidden values called accounts which is a number of usernames
pushed to an array.
print "<input type=hidden name=accounts value=\"@accounts\">";
the page that receives the data should be able to unpack the array but i am
having problems
&ReadParse();
foreach $line(@in) {
print "$line <br>\n";
}
shows accounts=username+username_001+username_002+username_003
as expected
but
$cnt=0;
@accounts = $in{'accounts'};
foreach $line(@accounts) {
print "$line<br>\n";
$cnt++;
}
print $cnt;
username username_001 username_002 username_003
1
all on 1 line, not 1 line for each value in the array.
what have i missed
Mark