You can just use a hidden field, like formname, or event better you can
have different actions for the forms. As for the code, I don't like that
this is triggered for all clicks in the form, maybe form.on('click',
'[type="submit"]', .... You also need to encodeURI the submit button's
name and value.
Frankly, I don't like this much. I think this should be accomplished with
the form's action.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
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/d/optout.