There was no answer to this question at Stackoverflow.
http://stackoverflow.com/questions/7456670/how-do-i-add-search-parameters-to-search-page-url
This is the form:
self.response.out.write("""
<form name="search_form" action="/searchhandler" method="post"><br />
<input type="text" name="search_string" size=40>
<input type="submit" value="search tags">
</form>""")
and this is the SearchHandler:
class SearchHandler(webapp.RequestHandler):
def post(self):
...
s = filter(None,
f1.striplist(self.request.get("search_string").split("
")))
n = len(s)
if n==1:
query = Main.all()
query.filter("tag_list", s[0])
query.order("-total_value")
f1.display(query, self) #a function that displays the search
results
...
In SearchHandler I checked and
self.request.get("search_string")
correctly gives the search string but I could not figure out how to
put that in the url like
/searchhandler?search_string=[search string]
Thanks!