Re: posting an array
- From: Bart Lateur <bart.lateur@xxxxxxxxxx>
- Date: Mon, 25 Jul 2005 10:26:58 GMT
Mark D Smith wrote:
>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
Use one such line per array item. And please *html-escape* each item.
foreach (@accounts) {
printf "<input type=hidden name=accounts value=\"%s\">\n",
escapeHTML($_);
}
>&ReadParse();
Ugh. Please don't tell me you're still using cgilib.pl.
escapeHTML() is exported if you use CGI like this:
use CGI ':standard';
--
Bart.
.
- Follow-Ups:
- Re: posting an array
- From: Mark D Smith
- Re: posting an array
- References:
- posting an array
- From: Mark D Smith
- posting an array
- Prev by Date: Re: Perl CGI no longer used?
- Next by Date: Re: Checking range of IP addresses
- Previous by thread: Re: posting an array
- Next by thread: Re: posting an array
- Index(es):
Relevant Pages
|