I want list of item not selected (checkbox in form)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vikaspa
    New Member
    • Nov 2006
    • 4

    #1

    I want list of item not selected (checkbox in form)

    Hi

    In php

    count($_POST['prodid'])

    gives me no of products selected by user
    i.e.no of check boxes checked

    How to get products for which the check box is not checked ?

    I am adding the products selected (check box checked) in shopping cart.

    Obviously i should delete the products from shopping cart not selected

    As we know

    count($_POST['prodid']) gives me no of products selected for the form (this can be max 10 since I am displaying only 10 products on a page)


    Please help
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    How to get products for which the check box is not checked ?
    you don't. unchecked checkboxes never make it to the server.

    Comment

    Working...