hi all, i'm from colombia,
I do not speak English... this is a translater of google...
translate.google.com.cowhen I insert my name on the form do not nothing
why in the second view .... name = request.vars.visitor_name or redirect(URL('first')) return None ???
def first():
form = SQLFORM.factory(Field('visitor_name', requires=IS_NOT_EMPTY()))
if form.process().accepted:
name = form.vars.visitor_name
redirect(URL('second',vars=dict(name=name)))
return dict(form=form)
def second():
name = request.vars.visitor_name or redirect(URL('first'))
return dict(name=name)
vews...
first.html
{{extend 'layout.html'}}
{{=form}}
second.html
{{extend 'layout.html'}}
<span> hola <strong>{{=name}}</strong> </span>