User input question

Ken ken at hotmail.com
Thu May 30 04:50:01 EDT 2002


Hi, I have a question on user input. Suppose the user need to put in a
search word like this:

print "<form name=update action=search.cgi method=post>" # I am not sure if
this line is right
print "<br>Search:"
print """<br><input type="text" name="searchword" size=12 value=%s
maxlength=50>"""
print """<input type="SUBMIT" value="SEARCH" name="SEARCH">"""
print """<input type=reset name="reset" value="reset">"""
print "</form>

How do I pass searchword to another function with header:

def search_word(word) ?

Thanks
p.s. i am new to python..... I used to work with C++





More information about the Python-list mailing list