hi, I am trying to get list of selected checkbox from the listing.
here is my code: html <form name="generatereport" method="POST" action=""> <table id="companieslisting"> {% for companies in companylist.object_list %} <tr> <td><input type="CHECKBOX" id="" name="selected_companies_id_list" value="{{companies.id}}" /></td> </tr> {% endfor %} </table> <input type="submit" value="Generate Report" name="Send" class="add- company-submit"/ > </form> </div> <p class="pagination"> {% if is_paginated %} <a {% if has_prev_page %}href="{% url crm.views.reporttab.report_companies_paginate page=prev_page %}{% if search_by %}?search={{search_by}}{% endif %}"{%else%} class="faded"{% endif %} >Prev</a> | Page {{cur_page}} of {{paginator_company_list.num_pages}} | <a {% if has_next_page %}href="{% url crm.views.reporttab.report_companies_paginate page=next_page %}{% if search_by %}?search={{search_by}}{% endif %}"{%else%} class="faded"{% endif %} >Next</a> {% endif %} </p> and my views: def reports( request, page=None): selected_companies_id_list = request.POST.getlist ('selected_companies_id_list') def report_companies_paginate( request, page): return reports( request , page) The problem I am facing here is I am only getting the list for the page where I am submitting the form. I mean above code does not work across pages. How can I fix this. Does I have to do javascripting for getting all the values. Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---