Question about FORM

53 views
Skip to first unread message

Константин Комков

unread,
Jan 22, 2020, 6:17:55 AM1/22/20
to web2py-users
Hello! Can somebody answer why If I use FORM() and inside FORM I create XML('<input name="test">') I don't have request.vars.test and form.vars.test after submit?

Massimo Di Pierro

unread,
Jan 30, 2020, 1:08:47 AM1/30/20
to web2py-users
You should have request.vars.test but not form.vars.test. The parsing of the latter is done by the INPUT() object. Since you use XML('<input/>') you do not have an INPUT object.

Константин Комков

unread,
Jan 30, 2020, 11:36:46 AM1/30/20
to web2py-users
Thank you, for using form.vars I used form.append(INPUT()).
Reply all
Reply to author
Forward
0 new messages