/ Published in: PHP
Pass variable as hidden field
recursively handles array.
recursively handles array.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<? /* 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 { <? } } ?>
URL: http://www.bigbold.com/snippets/posts/show/1729