Created
August 17, 2013 04:37
-
-
Save sugarHoge/6255283 to your computer and use it in GitHub Desktop.
入力フォームなどで、確認画面を用意する際に、前のページから送信されたpostデータからそのままhidden要素を生成
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{foreach from=$smarty.post|smarty:nodefaults key="key" item="item"} | |
{if is_array($item)} | |
{foreach from=$item key="key2" item="item2"} | |
<input type="hidden" name="{$key}[{$key2}]" value="{$item2}" /> | |
{/foreach} | |
{else} | |
<input type="hidden" name="{$key}" value="{$item}" /> | |
{/if} | |
{/foreach} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment