I am getting the hang of web2py, and having a lot of fun learning this
superb framework.

Question:
In the "from PHP to web2py" documentation Should
    return dict()
read
    return dict(form=form)

Or am I mission something?

Many thanks,
Rob

REFERENCE:
from PHP to web2py
http://www.web2py.com/AlterEgo/default/show/106

- - - - - - - - - - - - - - - - - - -
AS STATED: (didn't work)
- - - - - - - - - - - - - - - - - - -
def index():
    form=FORM(INPUT(_name="n"),INPUT(_type="submit"))
    if form.accepts(request.vars):
        session.n=form.vars.n
        redirect('hello')
    return dict()

- - - - - - - - - - - - - - - - - - -
THIS WORKS FOR ME:
- - - - - - - - - - - - - - - - - - -
def index():
    form=FORM(INPUT(_name="n"),INPUT(_type="submit"))
    if form.accepts(request.vars):
        session.n=form.vars.n
        redirect('hello')
    return dict(form=form)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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