python im zusammenhang mit cgi an.
ich nutze win 2k und xampp, ne anfängerfreundliche apache
version
habe in meiner html datei folgendes simples eingabefeld:
Code: Alles auswählen
<form action="includes/script.py">
<input type="text" name="zahl">
<input type="submit" value="Abschicken">
</form>
Code: Alles auswählen
import cgi
import cgitb; cgitb.enable()
form = cgi.FieldStorage()
print form
habe schon hier im forum gesucht, konnte aber nichts finden was hilft :/Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
*edit*
vergessen die fehlermeldung zu posten
ok fehler sagt zwar alles, aber verlinkt ist alles korrekt oO[Thu Nov 25 12:25:12 2004] [error] [client 127.0.0.1] (OS 3)Das System kann den angegebenen Pfad nicht finden. : couldn't create child process: 720003: script.py, referer: http://localhost/cgi-test/
[Thu Nov 25 12:25:12 2004] [error] [client 127.0.0.1] (OS 3)Das System kann den angegebenen Pfad nicht finden. : couldn't spawn child process: C:/misc/cgi-test/includes/script.py, referer: http://localhost/cgi-test/
*edit*
bin etwas weiter
Code: Alles auswählen
#!Python
import cgi
import cgitb; cgitb.enable()
form = cgi.FieldStorage()
print "Content-Type: text/html"
print "\n\n"
print "<html>"
print "<h1>"form"</h1>"
print "</html>"
print "<h1>form</h1>" also ohne die " " gehts