All,

this is the code in my controller:
def viewdata():
    #id = request.vars.id
    record = db1.data(request.vars.id)
    form = SQLFORM(db1.data, record=record, submit_button="OK")
    
    if form.process().accepted:
        redirect(URL('second'))
    return dict(form=form)

However, instead of being redirected to "second", it gets redirected to the 
same page with a "#" behind, and it displays a form with empty fields.
Moreover, if I add:
else:
    redirect(URL('third'))

That redirection works even before the page loads.
What am I doing wrong?

Thanks in advance!

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to