I've the action nominativo, that works. 
When i add the if condition for checking form.process().accepted  (is the 
code from >>>> to <<<<<) the form submit data but don't accept the 
variables. Any idea????
I need the conditional for redirection after form submission ....

def nominativo():
    response.menu=[]
    response.title=XML("""<input type="search" name="search" 
id="cerca_nominativo" value="" />""")    
    if request.args(0)>0:
        form=SQLFORM(db.Nominativi,db.Nominativi(request.args(0))).process()
        pulsante='Modifica'
        icona='refresh'
        messaggio='Modificato'
    else:
        form=SQLFORM(db.Nominativi).process()
        pulsante='Inserisci'
        icona='plus'
        messaggio='Inserito'
>>>>   
    if form.process().accepted:
        response.flash = T("fatto!")              
<<<<
   return dict(form=form, pulsante=pulsante,icona=icona)

-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to