Hi,

the input type button specifies a push button for use with client-side
scripting. The VALUE attribute gives the text label of the button. The
ONCLICK attribute is typically used to define the action taken when
the button is activated.

This means that your form has to use ONCLICK (or a similar event) to
create a call to the server from the client's browser.
See http://web2py.com/book/default/chapter/10#The-ajax-Function



On Mar 22, 8:11 am, cyber <[email protected]> wrote:
> Hi there! Say guys how can I handle form.accepts if I need update
> record in db from my custom form?
>
> I have the custom form in one view:
> {{from r in current_row:}}
> <form>
>    ...
>    <input type="button" value={{=r.enter}} />
>    ...
> </form>
> {{pass}}
>
> And I want to update db.table.enter from "False" to "True" when user
> presses the button. How can I do that?

Reply via email to