ich hab folgenden python-server:
Code: Alles auswählen
#httpd.py
from BaseHTTPServer import HTTPServer
from CGIHTTPServer import CGIHTTPRequestHandler
serveradresse =("", 8080)
server=HTTPServer(serveradresse, CGIHTTPRequestHandler)
server.serve_forever()
Code: Alles auswählen
<html>
<body>
<form method="get"
action="http://localhost/cgi-bin/login2.py">
<pre>
<input type = "submit" value="Login">
</pre>
</form>
</body>
</html>
Code: Alles auswählen
#! D:\Programme\Python25\python.exe
import cgi
import cgitb
cgitb.enable()
print 'Content-type: text/html'
print
print '<html>'
print '<head><title>Abfrage</title></head>'
print '<body>'
print '<h3> Der Preis betraegt </h3>'
print '</body>'
print '</html>'
das Debuggen funktioniert leider auch nicht....
Wo liegt der Fehler?