Passing parameters via URL
Aahz Maruch
aahz at panix.com
Fri Oct 20 17:04:16 EDT 2000
In article <i62I5.39711$N%1.18324302 at news3.rdc1.on.home.com>,
Colin Meeks <colin at programmedintegration.com> wrote:
>
>I've written some code that produces a web page. I have the same code
>replicated several times, with small changes that I use throughout a site.
>How can I bring these all into one program so I can make a call like
>
> http://www.xyz.com/program.py?dothis
>
>or
>
> http://www.xyz.com.program.py?dothat
>
>and have the Python program determine what to do when it receives either
>dothis or dothat.
Try the cgi module.
--
--- Aahz (Copyright 2000 by aahz at pobox.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
"In the end, outside of spy agencies, people are far too trusting and
willing to help." -- Ira Winkler
More information about the Python-list
mailing list