#!c:Pythonpython.exe
import cgi, cgitb;
print "Content-Type: text/html"
print
cgitb.enable(display=0, logdir="c:/www/log")
form = cgi.FieldStorage()
if not (form.has_key("userName") and form.has_key("passwd")):
print "<H1>Error</H1>"
print "Please fill in the name and password fields."
else:
print "<p>name:", form["userName"].value
print "<p>addr:", form["passwd"].value
it works on windows 2000 but after moving to linux , do i need to replace all
"c:Pythonpython.exe" to "/usr/bin/python" ?
If yes, then it must be a bad job
src="http://www.linuxforum.net/forum/images/icons/frown.gif">