note 10753 deleted from function.serialize by felipe
| From: | felipe@php.net | Date: | Sat, 29 Dec 2007 20:06:43 +0000 |
| Subject: | note 10753 deleted from function.serialize by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134186@lists.php.net to get a copy of this message | ||
Note Submitter: gleb at gleb dot org
----
About serializing the arrays via hidden fields:
1st page:
$arr1 = array("HELLO");
<input type="hidden" name="arr1" value="<? echo
urlencode(serialize($arr1)); ?>">
2nd page:
$arr2 = unserialize(urldecode($arr1));
Important: you have to use urldecode function not stripslashes, simply won't work.