/ Published in: PHP
URL: http://www.bigbold.com/snippets/posts/show/1729
Pass variable as hidden field recursively handles array.
Expand |
Embed | Plain Text
<? /* Pass variable as hidden Pass variable as hidden field recursively handles array eg usage: */ foreach ($_REQUEST as $key => $val) pass_hidden($key, $val); function pass_hidden($key, $val) { foreach ($val as $k => $v) pass_hidden("{$key}[{$k}]", $v); } else { <? } } ?>
You need to login to post a comment.
