HTML Form to Python Script Problem

Jim Conger jimc at regnoc.com
Sun Apr 2 15:54:18 EDT 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="test1.py">
<input type=text name=field1 size=50 value="Edit me">
<br>
<input type=submit>
</form>

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

#!/usr/bin/python
import cgi, sys
sys.stederr = sys.stdout
print "Content-type: text/html"
print
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
clues?

--
Jim Conger
Regnoc Software Inc.
jimc at regnoc.com, www.regnoc.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20000402/c06b99f8/attachment.html>


More information about the Python-list mailing list