罪と罰++二律背反

class ulogonForm extends HTML_QuickForm {
	function ulogonForm($formname = '', $submit = true) {
		parent::HTML_QuickForm($formName);
		
		//$this->addElement('text','menu','','logon');
		$this->addElement('text','id','ログオンID',array('size'=>8));
		$this->addElement('text','pw','パスワード',array('size'=>8));
		$this->addElement('hidden','mn','logon');
		
		if($submit){
			$this->addElement('submit','submit','送信');
		}
		
		$this->applyFilter('__ALL__','trim');

		$this->addRule('id','ログオンIDを入力して下さい','required',null);
		$this->addRule('pw','パスワードを入力して下さい','required',null);
	}
}
$form = new uLogonForm('form');
if ($form->validate()) {
	// 入力チェックOKの時のログオン処理
}
$result = $form->toHTML();

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2012-06-08 (金) 00:24:25 (4346d)