※上記の広告は60日以上更新のないWIKIに表示されています。更新することで広告が下部へ移動します。



$form->addElement("header","title","お問い合わせ");
$form->addElement("text","last_name","苗字:");
$form->addElement("text","first_name","名前:");
$sex = array();
$sex[] =& $form->createElement("radio","sex",NULL,"男性","male");
$sex[] =& $form->createElement("radio","sex",NULL,"女性","female");
$form->addGroup($sex, "sex", "性別:");
$options = array("minYear"=>1970, "maxYear"=>2000, "fromat"=>"YMD");
$form->addElement("date","birthday","誕生日:",$options);
$form->addElement("text","mail_address","メールアドレス:");
$form->addElement("textarea","body","問い合わせ内容:");
$form->addElement("submit","send","送信");

//空文字チェック
$form->addRule("last_name","苗字の入力よろ","required",NULL,"client");
$form->addRule("first_name","名前の入力よろ","required",NULL,"client");
//$form->addRule(array("text1","text2","text1とtext2が一致しません","compare",NULL,"client");
$form->addRule("mail_address","メールの入力よろ","required",NULL,"client");
$form->addRule("body","問い合わせ内容の入力をしてく
            
添付ファイル