starting a cgi with params

Anders M Eriksson anders.eriksson at morateknikutveckling.se
Mon Jan 10 11:41:04 EST 2000


Hello!

I have created a Python script which takes 2 params, a filename and an
operation code. The script works well when I run it from the command
prompt. My question is:

How do I send 2 params to the script when I'm using it as an CGI
script?

At the moment I'm using sys.argv[1] and sys.argv[2] to get the params
but it doesn't work when I call it from a web page.

// Anders




More information about the Python-list mailing list