RE: Passing a Multidimensional Array through a hidden form element

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Have you tried using the serialize() function in PHP?  That should keep
your array in order while it's being passed, then just unserialize it on
the other end.

-TG


> -----Original Message-----
> From: Ron.Herhuth@xxxxxxxxxxxxxxxxx 
> [mailto:Ron.Herhuth@xxxxxxxxxxxxxxxxx] 
> Sent: Monday, May 03, 2004 9:02 AM
> To: php-windows@xxxxxxxxxxxxx
> Subject:  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
> 
> 
> 
> 
> 
> 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux