By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,397 Members | 1,393 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,397 IT Pros & Developers. It's quick & easy.

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

P: 4
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
Jun 6 '10 #1
Share this Question
Share on Google+
1 Reply


Dormilich
Expert Mod 5K+
P: 8,639
How to get products for which the check box is not checked ?
you don't. unchecked checkboxes never make it to the server.
Jun 6 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.