title: flask handle form with radio buttons
body: <p>My <code>index.html</code> looks like this</p>
  
  <pre><code>&lt;form name="myForm" action="" method="post" onsubmit=""&gt;
  &lt;p&gt;
  &lt;input type="radio" name="options" id="option1"&gt; Option1 &lt;br&gt;
  &lt;input type="radio" name="options" id="option2"&gt; Option2 &lt;br&gt;
  &lt;input type="radio" name="options" id="option3"&gt; Option3 &lt;br&gt;
  &lt;/p&gt;
  &lt;p&gt;&lt;input type=submit value=Next&gt;&lt;/p&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I need to get the selected button. But since they all have the same name I cannot do it by writing <code>request.form['option']</code>. If I make their names different, users can make multiple selections.</p>
  
  <p>Isn't there a way to get a button's state by it's id ? If no, what's the simplest way to handle this form ?</p>