Do you mean one form with multiple submit buttons?

On the form:
{{=INPUT(_type='submit', _name='submit_one')}}
{{=INPUT(_type='submit', _name='submit_two')}}

In the controller:
  if request.vars['submit_one']:
    do something ## maybe call a function
  elif request.vars['submit_two']
    do something else ## call a different function

Both submit buttons come back to the same controller action.

On Oct 10, 3:29 pm, David Marko <dma...@tiscali.cz> wrote:
> I would like to use concept of shared form
> (http://web2py.com/book/default/chapter/07#Sharing-Forms) and I want to have
> a more submit buttons, each to different action on controller. How can I
> sinmply make a more buttons each submiting form to different action.

Reply via email to