Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199807

[PHP3] Multi-dim array in <form>s From: Christopher Curtis (ccurtis <email protected>)
Date: 07/31/98

I have an array declared such as:

$parms[] = array( "el1", "el2", "el3" );
$parms[] = array( "ela", "elb", "elc" );
$parms[] = array( "el1", "el2", "el3" );
$parms[] = array( "ela", "elb", "elc" );

I would like to be able to recreate this array via a <form>. I tried
declaring it such as:

<input name=param[][0]>

But that didn't seem to work very well. So I just rewrote everything to
swap the elements (to go column-wise instead of row-wise) and changed my
inputs to:

<input name=param[0][]>

Now, instead of getting garbage, I get nothing. Count( $param[0] ) = 0.

It is possible to return elements as a multidimensional array? How?

tia,

--
Christopher Curtis               - http://www.ee.fit.edu/users/ccurtis
Florida Institute of Technology  - System Administrator, Programmer
Melbourne, Florida  USA          - http://www.lp.org/

-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3