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:
Ummmm....is there a third form method that I'm not aware of?
urlencode(serialize($my_array)). However, after retrieving data from hidden field and unserialize I've got junk.
Why are you urlencode'ing it?
Someone can explain me what I did wrong?
Did you urldecode it before you unserialized it? Better yet, don't urlencode it at all.
Also, do I need to do addslashes/stripslashes with serialized (or encoded ?) data?
You shoudn't, but if you add on the submit, don't forget to strip on the retrival.
Thanks in advance for any suggestion.
********************************************* * Best Regards --- Andrei Verovski * * Personal Home Page * http://snow.prohosting.com/guru4mac * Mac, Linux, DTP, Development, IT WEB Site *********************************************
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php