mb_trim($_POST['resume_basic_data:last_name']); $_POST['resume_basic_data:first_name'] = $util->mb_trim($_POST['resume_basic_data:first_name']); if(!$_POST['resume_basic_data:last_name'] || !$_POST['resume_basic_data:first_name']) $ary_err[name] = "・氏名を入力してください。"; $_POST['resume_basic_data:last_name_kana'] = $util->mb_trim($_POST['resume_basic_data:last_name_kana']); $_POST['resume_basic_data:first_name_kana'] = $util->mb_trim($_POST['resume_basic_data:first_name_kana']); if(!$_POST['resume_basic_data:last_name_kana'] || !$_POST['resume_basic_data:first_name_kana']) $ary_err[kana] = "・氏名(フリガナ)を入力してください。"; if(!$_POST['resume_basic_data:sex']) $ary_err[sex] = "・性別を入力してください。"; if(!$_POST['birthday_year'] || !$_POST['birthday_month'] || !$_POST['birthday_day']) $ary_err[birthday] = "・生年月日を入力してください。"; else if(!checkdate($_POST['birthday_month'], $_POST['birthday_day'], $_POST['birthday_year'])) $ary_err[birthday] = "・生年月日が無効です。"; else $_POST['resume_basic_data:birthday'] = $_POST['birthday_year'] . "-" . $_POST['birthday_month'] . "-" . $_POST['birthday_day']; if(!$_POST['resume_basic_data:pref_id']) $ary_err[pref] = "・都道府県を入力してください。"; $_POST['resume_basic_data:phone_number'] = $util->mb_trim($_POST['resume_basic_data:phone_number']); if(!$_POST['resume_basic_data:phone_number'] || !is_numeric($_POST['resume_basic_data:phone_number'])) $ary_err[phone] = "・電話番号を半角数字で入力してください。"; if(!$_POST['resume_basic_data:current_job']) $ary_err[job] = "・現在の職業を入力してください。"; $_POST['resume_basic_data:mail_address'] = $util->mb_trim($_POST['resume_basic_data:mail_address']); $_POST['mail_address2'] = $util->mb_trim($_POST['mail_address2']); if(!$_POST['resume_basic_data:mail_address']) $ary_err[mail] = "・メールアドレスを入力してください。"; else if(!ereg("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$",$_POST['resume_basic_data:mail_address'])) $ary_err[mail] = "・メールアドレスが正しくありません。"; else if($_POST['resume_basic_data:mail_address'] != $_POST['mail_address2']) $ary_err[mail] = "・メールアドレス(確認)が同じではありません。"; // else if($cls_r->checkEntry($_POST['resume_basic_data:mail_address'])) // $ary_err[mail] = "・メールアドレスが既に登録されています。"; $_POST['resume_basic_data:mobile_address'] = $util->mb_trim($_POST['resume_basic_data:mobile_address']); } $_POST['resume_basic_data:password'] = $util->mb_trim($_POST['resume_basic_data:password']); $_POST['password2'] = $util->mb_trim($_POST['password2']); if(!$_POST['resume_basic_data:password']) $ary_err[password] = "・パスワードを入力してください。"; else if($_POST['resume_basic_data:password'] != $_POST['password2']) $ary_err[password] = "・パスワード(確認)が同じではありません。"; if(!count($ary_err)) { include_once "entry_fix.html"; exit; } } include_once "header.html"; ?>
HOME > 応募フォーム |