Hi everyone

May I know how to process multiple buttons on a form?
For example, I have 2 buttons (process and save). How should I write
the form.accept(request.vars, session) part to differentiate the
actions of the 2 buttons?

form = FORM(TABLE(TR('Sequence (raw format):  ',
                        TEXTAREA(_type='text', _name='sequence',
                                 requires=IS_NOT_EMPTY())),
                      TR('Action: ',
                        SELECT('Complementation', 'Transcribe',
'Translate',
                               'Back Transcribe', 'Back Translate',
                               _name='action'),
                      INPUT(_type='submit', _value='PROCESS'))))
    if form.accepts(request.vars,session): ....

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