def page1():
   form=SQLFORM(db.a_table)
   if FORM.accepts(form,request.vars):
        session.vars=form.vars
        redirect(URL(r=request,f='confirm'))
   return dict(form=form)

def confirm():
   form=FORM('sure?',INPUT(_name='yes',_type='checkbox'),INPUT
(_type='submit'))
   if request.vars.yes and session.vars:
        db.a_table.insert(**session.vars)
        ... do something
   return dict(form=form)

On May 3, 8:50 am, Nazgi <mara.ku...@gmail.com> wrote:
> Hi,
>
>       I'm new to python and web2py. I have a simple doubt. I've
> written a form and after the submit button is pressed in the form,  I
> want to print the variables of the form into next page and ask for
> confirmation. I have written the form in a controller and also the
> function for the next page where the variables of the form are
> printed. But i dont know how to direct to that page after pressing of
> the submit button. Can someone help me regarding this.
>
> regards,
> Nazgi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to