Re: Passing a Multidimensional Array through a hidden form element

From: Date: Mon, 03 May 2004 13:04:19 +0000
Subject: Re: Passing a Multidimensional Array through a hidden form element
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-23610@lists.php.net to get a copy of this message
You can pass them in the following form: <input type='hidden' name='gromit[1][2]' value='wallace' /> then your REQUEST var will be a 2-dimensional array there is a splendid PEAR HTML_Javascript class that converts PHP variables into JS variables. HTH Ignatius _________________________ ----- Original Message ----- From: <Ron.Herhuth@tatumpartners.com> To: <php-windows@lists.php.net> Sent: Monday, May 03, 2004 3:01 PM Subject: [PHP-WIN] Passing a Multidimensional Array through a hidden form element I have a multidimensional array that is created on one page and I need to send it to another page, preferrably using a hidden field in a $_POST form. This is what the array structure looks like: $mArray[0][5][1]="sampleElement"; I tried implode/explode but this just creates a long nasty string of error messages "Array to string Conversion on line x" I don't really want to setup a session to do this but if that is the only way I could do that. Any suggestions? Thanks, Ron

« previous php.windows (#23610) next »