Hi,
I was having the same problem. This is my solution:

f = web.form
users = ['pyther', 'john', 'joe', 'mike', 'dan', 'dods', 'mark']
p = []

for u in users:
p.append(f.Checkbox(name=u,description=u,value=u))
p.append(f.Button("submit", type="submit", description="Users"))
user_form = f.Form(*p)


On Wed, Sep 16, 2009 at 15:37, Matthew <[email protected]> wrote:

>
> Hello.
>
> First I am not very experienced with python and with webpy. I have
> read this http://webpy.org/form and it makes sense to me.
>
> Goal/Objective: Generate a form based on values in a list such as
> users. ['pyther', 'john', 'joe', 'mike', 'dan', 'dods', 'mark'] I
> would like to be able to have a checkbox next to the users name and
> then query which users are checked.
>
> I do not see how this can be done using the form method. As it appears
> with the form method you can only use static items.
>
> What would be the best way to achieve my goal? Is it possible to use
> the form method? Do I have to create an html form? If so how can I
> access the data without using web.input?
>
> Thanks in advance.
>
> pyther
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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