title: Keeping checkbox values with gae-sessions
body: <p>I look for answers but It was all about php. I got this index.html:</p>
  
  <pre><code> &lt;form method="post"&gt;       
     &lt;input type="checkbox" name="opts" value="opt1" opt[0]&gt; option 1&lt;br&gt;
    &lt;input type="checkbox" name="opts" value="opt2" opt[1]&gt; option 2&lt;br&gt;
    &lt;input type="checkbox" name="opts" value="opt3" opt[2]&gt; option 3&lt;br&gt;
    &lt;br&gt;
     &lt;input name="" type="submit" value="Save" &gt;  
  
  &lt;/form&gt;
  </code></pre>
  
  <p>and this main.py </p>
  
  <pre><code>import webapp2
  import cgi
  import os
  import jinja2
  from gaesessions import get_current_session
  class MainHandler(webapp2.RequestHandler):
      def get(self):
          session=get_current_session()
          opt=session.get('opt',[])        jinja_environment=jinja2.Environment(autoescape=True,loader=jinja2.FileSystemLoader(os.path.join(os.path.dirname(__file__),'templates')))
          tpi_vars={"opt":opt}
          template=jinja_environment.get_template('index.html')
  
          self.response.write(template.render(tpi_vars))
  
      def post(self):
          opt=self.request.get("opt", allow_multiple=True)
          session=get_current_session()
  
          session['opt']=opt
  </code></pre>
  
  <p>I want to store checked checkboxes and get them. How can I make this possible?</p>