Re: posting an array



"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

.



Relevant Pages

  • Re: Installation & Encryption Nightmare
    ... Encryption works well and there is no "back ... The files were encrypted from the Mark account, ... > although both accounts are administrators. ... > able to boot into C:\WINDOWS Safe Mode, ...
    (microsoft.public.windowsxp.security_admin)
  • RE: A little Macro Help Please ...
    ... "mark" wrote: ... The code below has a 2 dimension array which contains the field to apply the ... criterion to, ... E, places the cursor in the cell F3, and turns the protection back on. ...
    (microsoft.public.excel.programming)
  • Re: Finding Login Hours for user accounts in AD
    ... The logonHours attribute is a byte array. ... Accounts with logon hours set will display in the format; ... created by copying other user accounts and retain the same properlys. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Finding Login Hours for user accounts in AD
    ... The logonHours attribute is a byte array. ... Accounts with logon hours set will display in the format; ... created by copying other user accounts and retain the same properlys. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Please help optimize (and standarize) this code...
    ... > Mark F. Haigh wrote: ... But the reason I didn't use an array of strings in the ... What's the biggest number of elements that your array can have? ...
    (comp.lang.c)