[kwlug-disc] Sending array variable over Web/CGI?

William Park opengeometry at yahoo.ca
Sat May 12 17:52:22 EDT 2018


Hi all,  (apology if you're seeing it again)

If I'm sending single valued data over web, eg. a=111, b=222, c=333,
then I can do 
    http://.../xxx.cgi?a=111&b=222&c=333

How do I send array data, like A[1]=111, A[2]=222, A[3]=333 to a CGI
script?  I don't think I can do something like
    http://.../xxx.cgi?A[1]=111&A[2]=222&A[3]=333
Or, can I?

I have seen places where a same variable is repeated, eg.
    http://.../xxx.cgi?A=111&A=222&A=333
but that means the CGI script has to build the array.
-- 
William Park <opengeometry at yahoo.ca>




More information about the kwlug-disc mailing list