posting an array
- From: "Mark D Smith" <usenet@xxxxxxxxxxxxxxxxxx>
- Date: Sat, 23 Jul 2005 19:34:10 +0100
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
.
- Follow-Ups:
- Re: posting an array
- From: Bart Lateur
- Re: posting an array
- From: Joe Smith
- Re: posting an array
- From: Gunnar Hjalmarsson
- Re: posting an array
- From: James Taylor
- Re: posting an array
- Prev by Date: Re: Connecting to oracle from perl
- Next by Date: Re: copy contructor
- Previous by thread: FAQ 1.10 Can I do [task] in Perl?
- Next by thread: Re: posting an array
- Index(es):
Relevant Pages
|