try:
db.table.insert(f_name=form.vars.f_name)
2014-09-23 6:10 GMT-03:00 Andy Joel :
> I have a very simple form processing page in my controller:
>
> def new():
> form = SQLFORM.factory(
> Field('f_name', label='Your name', requires=IS_NOT_EMPTY()),
> )
> if form.process(
I have a very simple form processing page in my controller:
def new():
form = SQLFORM.factory(
Field('f_name', label='Your name', requires=IS_NOT_EMPTY()),
)
if form.process().accepted:
db.table.insert(**form.vars)
response.flash = 'form accepted'
elif f
2 matches
Mail list logo