If your form has several checkboxes with the same name attribute, the request when submitting the form will have several values for this name.
Your current code uses Request.get to get the value, but it will only get the first value if there are more than one. Instead, you can get all the values using Request.get_all(name) (in webapp) or Request.get(name, allow_multiple=True) (in webapp2). This will return a (possibly empty) list with all the values for this name.
Here's how you could use it in your code:
def post(self): adjectives = self.request.get('adjective' allow_multiple=True) for a in adjectives:
source share