HTML Form to Python Script Problem
jimc at regnoc.com
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="test1.py">
<input type=text name=field1 size=50 value="Edit me">
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"
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
Regnoc Software Inc.
jimc at regnoc.com, www.regnoc.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list