お仕事でHTML_QuickFormのhierselectを使いました。沿線を選んだ後に該当する駅をselectでプルダウン表示する処理を作らなければならなかったのです。最初はAJAXを使ってやろうと思ってサンプルを探していたら、たまたまPHPならHTML_QuickFormのhierselectで出来ることを見つけ、こちらで実現しました。 簡単に作成できてJavaScriptのコードは書かなくて済むので、お仕事で使うには丁度いいです。 サンプルは次です。 <?php /** * hierselectサンプル */ ini_set('include_path', 'PEAR/' . PATH_SEPARATOR . 'Smarty-2.6.20/'); /** * Smarty */ require_once 'libs/Smarty.class.php'; /** * HTML_Quic