Andrei Verovski (aka MacGuru) napsal(a):
Hi,

I am need to pass serialized assotiative array via form hidden field (not GET or POST). In order to do it, I did the following: urlencode(serialize($my_array)). However, after retrieving data from hidden field and unserialize I've got junk.

Someone can explain me what I did wrong?

Also, do I need to do addslashes/stripslashes with serialized (or encoded ?) data?

Thanks in advance for any suggestion.

try to encodedata with base64_encode http://cz.php.net/base64-encode and retrieved data base64_decode Ha :) here http://cz.php.net/serialize - in the wiki it is already said :)


-- Mirek Novak jabberID: [EMAIL PROTECTED] ICQ: 119499448


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



Reply via email to