Sending a multi-dimensional array using serialize

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kevin7654
Forum Newbie
Posts: 19
Joined: Sat Feb 18, 2006 2:38 pm

Sending a multi-dimensional array using serialize

Post by kevin7654 »

Hey everyone,

I'm trying to send a multi-dimensional array through a hidden form field using serialize. On the first page that has the form on it, the serialized version looks fine. However, when I submit the form not all of it gets passed through or something, because when I do print_r($_POST) I get a much shorter version of the serialized array. Any suggestions?

Thanks,
Kevin
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

use sessions.
Post Reply