Directory itest (/mod_python/itest)
AddHandler mod_python .py PythonHandler index PythonDebug On DirectoryIndex index.pyvytvoříme index.py
from mod_python import apache from mod_python import util def handler(req): req.content_type = 'text/plain' req.write("Hello World!\n") form = util.FieldStorage(req) if form.has_key('cosi'): req.write("COSI: %s" % form['cosi'].value) return apache.OK
index.py
http://jilsoft.cz/mod_python/itest/
anyscript.py (odeslání formuáře - klíč cosi)
http://jilsoft.cz/mod_python/itest/index.py?cosi=nic