peter at wl.vg
peter at wl.vg
Mon Sep 11 01:28:36 EST 2000
I am just learning Python and am trying to learn how to use it for online applications. Sorry for my ignorance, but I usually develop in perl. I can't find documentation that describes how to do this. I have pieced this together, but it doesn't work. from mod_python import apache import cgi def handler(req): len = int(req.headers_in["content-length"]) form_data = cgi.parse_qs(req.read(len)) req.send_http_header() req.write("This is from the form: "+form_data['name']+"!") return apache.OK -- Peter Halliday Online Application Developer Whetstone Logic, Inc. http://www.whetstonelogic.com icq#75769411 AIM screen name: hoaggelos
|