Hi Jim. Thanks for your reply.
I understand when you say about saving a list to just one field.
But documentation don't say anything about iterating data from multi-values
fields.
Take a look at http://webpy.org/cookbook/input and tell me what you
understand about this.

My database schema for this field is char(100).


--
Tomás Schertel
----------------------------------------------
Linux Registered User #304838
Arch Linux User
http://www.archlinux-br.org/
----------------------------------------------


On Sun, Oct 23, 2011 at 10:04, Bikes At Work Inc <[email protected]>wrote:

> Google didn't preserve my tabs as spaces, so the indents were off :(
> Let.s try that again:
>
> def POST(self):
>    i = web.input(groups = [])
>    for checkbox in i.groups:
>        db.insert("users", email = i.email, name = i.name, groups =
> checkbox)
>
> or
>
> def POST(self):
>    i = web.input(groups = [])
>    for checkbox in i.groups:
>        if checkbox:
>        db.insert("users", email = i.email, name = i.name,
>                                        groups = checkbox)
> -Jim
> :x
>
> --
> You received this message because you are subscribed to the Google Groups
> "web.py" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/webpy?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to