On Monday 13 October 2003 18:47, Ciprian Trofin wrote: > I have a form with 3 checkboxes x1,x2,x3. I want to build an array of > values from the checked boxes; I choosed the following approach: > 1. build an array with all values > 2. eliminate from array the "" values using unset
The checkboxes that are not checked are not set anyway so what you're trying to do is superfluous. Try print_r($_POST) to see exactly what you're getting back from the form. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Money can't buy happiness, but it can make you awfully comfortable while you're being miserable. -- C.B. Luce */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php