{{for i in range(0,len(post)):}}

<form enctype="multipart/form-data" action="{{=URL('save_post')}}" 
method="post">

    <td><input type="checkbox" name="name" value= 'on' /></td>
    
    <td>{{=post[i].created_by}}</td>
    <td>{{=post[i].body}}</td>

{{pass}}

<input type="submit" />
</form>


If I click on the checkbox. My request.args.name is 'on'. If I don't click 
its empty. Nice. But how do I pass the post[i].id
argument to save_post based on which id was checked? Does the value 
parameter takes an integer value. because value = {{i}} doesn't work






On Monday, February 29, 2016 at 10:21:10 AM UTC-5, Ron Chatterjee wrote:
>
> <td><input type="checkbox" name= {{=post.id}} value="on" /></td>
>
> Did that. I don't see anything in my controller except '_Storage____'
>
> On Monday, February 29, 2016 at 10:07:41 AM UTC-5, Leonel Câmara wrote:
>>
>> Sort of that but use name instead of id
>>
>

-- 
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.

Reply via email to