Some of the information here may be outdated, please check the book instead
[edit]

The proper way to do it is have a self submitting forms that redirect to the destination page.

Here are two sample controllers:

def page1():
    form=FORM('your name:',INPUT(_name="name"),INPUT(_type="submit"))
    if form.accepts(session.vars,session):
         session.name=form.vars.name
         redirect(URL(r=request,f='page2'))
    return dict(form=form)

def page2():
    return dict(message='hello %s'%session.name)
© 2008-2010 by Massimo Di Pierro - All rights reserved - Powered by web2py - design derived from a theme by the earlybird
The content of this book is released under the Artistic License 2.0 - Modified content cannot be reproduced.