Leonel, are you saying I should do this?
<td><input type="checkbox" id= {{=post.id}} value="on" /></td>
<form enctype="multipart/form-data"
action="{{=URL('save_post',args=request.vars)}}" method="post">
<input type="submit" />
</form>
Then in the save_post controller the request.args(0) will give me
a'_Storage____'. I need the post.id if selected checkbox. or null otherwise
On Monday, February 29, 2016 at 8:43:15 AM UTC-5, Leonel Câmara wrote:
>
> You shouldn't pass it in the action as an arg. You should just use
> request.vars to find out which checkbox was checked by giving them
> different names.
>
--
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.