Esempio n. 1
0
     $err['name_sei'] = '1';
 }
 if (chk_null($_POST['name_kana'])) {
     $err['name_kana'] = '1';
 }
 //----------------------------------------------------------------------------------------
 if (chk_null($_POST['tel'])) {
     $err['tel'] = '1';
 }
 //----------------------------------------------------------------------------------------
 if (chk_null($_POST['age'])) {
     $err['age'] = '1';
 }
 //----------------------------------------------------------------------------------------
 //----------------------------------------------------------------------------------------
 if (chk_null($_POST['mail'])) {
     $err['mail'] = '1';
 } elseif (chk_email($_POST['mail'])) {
     $err['mail'] = '1';
 }
 /*if(chk_null($_POST['mail_chk'])){
 		$err['mail_chk']='1';
 	}elseif($_POST['mail']!=$_POST['mail_chk']){
 		$err['mail_chk']='1';
 	}*/
 //----------------------------------------------------------------------------------------
 //----------------------------------------------------------------------------------------
 //----------------------------------------------------------------------------------------
 /*	if(chk_null($_POST['month_1'])){
 		$err['choice']='1';
 	}
Esempio n. 2
0
 //----------------------------------------------------------------------------------------
 if (chk_null($_POST['report'])) {
     $err['report'] = '1';
 }
 //----------------------------------------------------------------------------------------
 if (chk_null($_POST['month_1'])) {
     $err['choice'] = '1';
 }
 if (chk_null($_POST['day_1'])) {
     $err['choice'] = '1';
 }
 if (chk_null($_POST['time01'])) {
     $err['choice'] = '1';
 }
 //----------------------------------------------------------------------------------------
 if (chk_null($_POST['content'])) {
     $err['content'] = '1';
 }
 //----------------------------------------------------------------------------------------
 if ($conf['type'] == "A" and $err) {
     //TypeAの場合の処理
     foreach ($err as $key => $val) {
         $er[$key] = $val . "<br />";
     }
     $err = $er;
 }
 if ($err and $_POST and $mode != "input") {
     $mode = "err";
 } elseif (!$err and $_POST and $mode != "input") {
     $mode = "chk";
 }