HTML Form to Python Script Problem

Jim Conger jimc at
Sun Apr 2 21:54:18 CEST 2000

I'm having trouble getting a simple form to launch a python script on my
RH6.1 system.  Python runs fine alone, but I don't get any action when I
launch a script.  Here is the HTML form:

<form method=post action="">
<input type=text name=field1 size=50 value="Edit me">
<input type=submit>

The python script is in the same directory as the HTML file and looks

import cgi, sys
sys.stederr = sys.stdout
print "Content-type: text/html"
print "<H1>Heading</H1>"
pinrt "text line here."

The script is set to be executable by all and runs fine alone.  However,
nothing happens when I click the submit button on the HTML form.  Any

Jim Conger
Regnoc Software Inc.
jimc at,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list