Aus einem Tutorial habe ich folgenden HTML Code für Werteübergabe per CGI:
Code: Alles auswählen
<form method="POST" action="http://localhost:8080/cgi-bin/cgi_sample.py">
<table cellpadding="3" cellspacing="1">
<tr><td><input type="text" name="User" size="20"></td></tr>
<tr><td><input type="submit" value="Senden"></td></tr>
</table>
</form>
Code: Alles auswählen
#!C:/Programme/Python24
import cgi
formData = cgi.FieldStorage();
userName = formData['User'].value
htmlTemplate = """Content-type: text/html
<html>
<head>
<title>%(title)s</title></head>
<body>
%(body)s
</body>
</html>
"""
print htmlTemplate % { 'title': 'Hallo!', 'body': 'Ihr Name ist %s.' % cgi.escape(userName) }

und nach Eingabe meines Zope PWs das:

Das Python Script liegt auf meinem Zope hier:

Laut Tutorial http://www.linuxenterprise.de/itr/featu ... id,74.html
alles tutti und ganz einfach. Merk ich aber nichts von. Was mache ich falsch ?
Seven