Re: posting an array
- From: "Mark D Smith" <usenet@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 25 Jul 2005 13:55:09 +0100
"Bart Lateur" <bart.lateur@xxxxxxxxxx> wrote in message
news:r3f9e1lvs04oelc6f703aj8f8mgj9ronhm@xxxxxxxxxx
> 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.
Hi All
I am modifying a script supplied by someone else who uses cgilib.pl, i do
use CGI for scripts i write from the ground up.
with the input from this group i have resolved my problem.
thanks to all
Mark
.
- References:
- posting an array
- From: Mark D Smith
- Re: posting an array
- From: Bart Lateur
- posting an array
- Prev by Date: Re: trouble with this code in deleting files older than 60 days
- Next by Date: Re: paging page trouble
- Previous by thread: Re: posting an array
- Next by thread: Checking range of IP addresses
- Index(es):
Relevant Pages
|