Re: Basic multi-dimensional array help

From: Date: Wed, 04 Jul 2001 23:32:25 +0000
Subject: Re: Basic multi-dimensional array help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-56245@lists.php.net to get a copy of this message
Hello, did you try printing it with either var_dump() or print_r() function? What result did you get? ----- Original Message ----- From: "Jeff Gannaway" <webmaster@cactusgraphics.com> To: <php-general@lists.php.net> Sent: 2001. július 3. 14:05 Subject: [PHP] Basic multi-dimensional array help I've got input fields in a form that look like: <INPUT TYPE=HIDDEN NAME=Person[0] VALUE=Jeff> <INPUT TYPE=CHECKBOX NAME=Info[0][] VALUE=Apples> <INPUT TYPE=CHECKBOX NAME=Info[0][] VALUE=Oranges> <INPUT TYPE=CHECKBOX NAME=Info[0][] VALUE=Peaches> <INPUT TYPE=CHECKBOX NAME=Info[0][] VALUE=Pears> <INPUT TYPE=HIDDEN NAME=Person[1] VALUE=Carolyn> <INPUT TYPE=CHECKBOX NAME=Info[1][] VALUE=Apples> <INPUT TYPE=CHECKBOX NAME=Info[1][] VALUE=Oranges> <INPUT TYPE=CHECKBOX NAME=Info[1][] VALUE=Peaches> <INPUT TYPE=CHECKBOX NAME=Info[1][] VALUE=Pears> The next script processes all this into a database. Here are the results I get from various commands: sizeof($Info): 2 sizeof($Info[0]): 4 print $Info[0][0]: Array[0] Any help? Jeff Gannaway ___________________________________________________________ SUMMER ART PRINT SALE at www.PopStreet.com Save an additional 10% off art print orders of $50 or more. Type in coupon code jemc when checking out. ___________________________________________________________ Find the right art print for your home. * Search by artist, color, art style and subject. * Preview the art prints against your wall color. * Specializing in contemporary, abstract and African American art. * Every day discounts on thousands of fine art prints. PopStreet.com is your avenue to art. http://www.popstreet.com ___________________________________________________________ Coupon may be redeemed from June 27 through July 31, 2001. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#56245) next »