I want to know if it's possible to get values from this query string?
'?agencyID=1&agencyID=2&agencyID=3'
Why I have to use a query string like this?
I have a form with 10 check boxes. my user should send me ID of news agencies which he/she is interested in. so to query string contains of multiple values with the same name. total count of news agencies are variable and they are loaded from database.
I'm using Python Tornado to parse query strings.
Reading the tornado docs, this seems to do what you want
So like this
Note that here i used
get_arguments
, there is also aget_argument
but that gets only a single argument.You can get the whole query with
tornado.web.RequestHandler has two methods to get arguments:
So, maybe get_arguments is what you need.