title: Help with Python in the web
body: <p>I've been using <a href="http://werkzeug.pocoo.org/" rel="nofollow noreferrer">Werkzeug</a> to make WSGI compliant applications. I'm trying to modify the code in the front page.</p>
  
  <p>Its basic idea is that you go to the /hello URL and you get a "Hello World!" message. You go to /hello/ and you get "hello !". For example, /hello/jeff yields "Hello Jeff!". Anyway, what I'm trying to do is putting a form in the front page with a text box where you can enter your name, and it will submit it to /hello. So if you enter "Jeff" in the form and submit, you get the "Hello Jeff!" message.</p>
  
  <p>However, I have no idea how to do this. I need to pass the "name" variable to the hello template, but I don't know how. Here's my index.html:</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Index page&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;h1&gt;Go to the &lt;a href="${url_for('say_hello')}"&gt;default&lt;/a&gt;&lt;/h1&gt;
  &lt;form name="helloform" action="${url_for('say_hello')}" method="post"&gt;
  &lt;input type="text" name="name"&gt;
  &lt;input type="submit"&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>method="get" doesn't work either, predictably.</p>