Build Array from Checkboxes in Form

    Date: 01/14/10 (PHP Community)    Keywords: web

    I’m helping with a web form that has a lot of selectable options.
    (There must be 70 different items that can be selected by the user, in any number of combinations.)

    These are represented as check boxes in the form.

    I’m wondering if there is a way to create an array of all the selected items without having to check each one individually, and adding it manually.

    I suppose I could make a function to do all the hard work…but I’d still have to call that function for each and every checkbox item.  Seems inefficient.

    Any ideas?

    Source: http://php.livejournal.com/676320.html

« $_SESSION Use || Do x to items 1-7, then y... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home