note 37377 deleted from function.array-keys by pollita
| From: | pollita@php.net | Date: | Wed, 12 Nov 2003 21:39:11 +0000 |
| Subject: | note 37377 deleted from function.array-keys by pollita | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-60322@lists.php.net to get a copy of this message | ||
Note Submitter: jon@jellybob.co.uk
----
A more practical way of storing array values in a hidden field would be:
<input type="hidden" name="name" value="<?php
urlencode(serialize($array)) ?>" />
Which would then later be retrieved by going:
<?php $array = unserialize(urldecode($_POST['name'])); ?>