Hi, I'm a newbie to flask :) and i got a problem with access request.form like bellow: <input type='checkbox' name='ck' value='1' /> <input type='checkbox' name='ck' value='2' /> how to get the 'ck' values as array ? thanks.
On Mon, 2010-06-21 at 10:35 +0800, 刘亮 wrote:
> how to get the 'ck' values as array ?
request.form.getlist('ck') returns a list with the values.
Daslch, thanks a lot 2010/6/21 DasIch <dasdasich@googlemail.com>: > On Mon, 2010-06-21 at 10:35 +0800, 刘亮 wrote: >> how to get the 'ck' values as array ? > request.form.getlist('ck') returns a list with the values. > >