Thank you, it worked, or sort

because when I tried to print de values, it prints on this way:

[
'
t
e
s
t
1
'
,
'
t
e
s
t
2
'
]

I tried to get the form values on this way:

form.vars.test

and printed this way

for x in form.vars.test :
    print x

Am I doing it wrong?

Just wanted it to print:
test1
test2

On Fri, Feb 13, 2009 at 15:19, mdipierro <[email protected]> wrote:

>
> you can do:
>
> options=[str(x) for x in range(10)]
> form=FORM(SELECT(*options,_name='test',_multiple='multiple'),INPUT
> (_type='submit'))
>
> or you can do:
>
> from gluon.sqlhtml import form_factory
> options=[str(x) for x in range(10)]
> form=form_factory(SQLField('test',requires=IS_IN_SET
> (options,multiple=True))
>
> Massimo
>
>
> On Feb 13, 11:59 am, dewes <[email protected]> wrote:
> > Hello there, I'm new at web2py, and I have a question. When making a
> > form with FORM() how I do a <select multiple name="test"> ?
> >
>


-- 
"Jeder Tag der Niederlage ist ein Sieg"
"Each day of the defeat is a victory"

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to