2011-05-13から1日間の記事一覧

onclickにSmartyから文字列を渡す場合のエスケープ処理

default_modifiersでhtmlを設定している場合 'quotes'だけでOK {~$tmp|escape:'quotes'~} default_modifiersでhtmlを設定していない場合 'quotes'→デフォルト('html')の二重 {~$tmp|escape:'quotes'|escape~} テストコード {~nocache~} <script type="text/javascript"> "); document…

auでPOST時に「このページは見つかりませんでした(404)」の対処法

index.php?id=hoge formタグのactionが空白だとエラー? <form ethod="post" action=""> <input type="submit" name="submit" value="送信" /> </form> なので下記の様に指定すると治った。 <form method="post" action="index.php?id={$smarty.get.id|escape}"> <input type="submit" name="submit" value="送信" /> </form> 調査したところ、 【action=""】と未指定 URLにG…