Re: Help with PHP processing form checkboxes needed :-(

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



chris_payne@xxxxxxxxxxxxxxx wrote:
Hi everyone,

I'm having a major problem. I have an order system that allows you to add items with a checkbox, that works fine. If you add an item and go back to the product listing the items that are in your cart show up as checked on the products listing forms to make it easier to see what you have in your cart.

My problem comes here:

I have been asked that if you have items in your cart and people are browsing your products, when they see it checked (Because they added it earlier) - well, basically they want to be able to uncheck it from there and delete it from the database, how the heck can I do this? When you check a box it's easy as it sends it's id but if you don't check one it doesn't send any data or am I missing something?

Please be gentle with me as this is confusing the heck out of me :-)

if (isset($_POST['someitem'])) {
   $someitem_checked = true;
   } else {
   $someitem_checked = false;
   }


Regards

Chris



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux