[Tutor] Newbie, get array from the url field

GCS gcs@agentsinside.com
Sat, 3 Feb 2001 16:45:09 +0100


Hello,

 I would like to do a form handling. The URL looks like this:
http://somewhere/somedir/somescript.py?variable[]=value1&variable[]=value2

How can I get the value1 and value2 in an array? If there would be only one
'variable[]', then
list=cgi.SvFormContentDict()
if list.has_key("gcs"):
        text=list["gcs"]

enough. But I get problems because of there are more than values ofcourse.

Thanks all the replies in advance,
				GCS
Ps: Is the list really no searchable?