Re: unset() un-appropriate ?
| From: | Jason Wong | Date: | Mon, 13 Oct 2003 11:40:21 +0000 |
| Subject: | Re: unset() un-appropriate ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-165957@lists.php.net to get a copy of this message | ||
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
*/