$val){$seminar .= $val;}$_POST['seminarList'] = $seminar;}else{$seminar = $_SESSION['seminarList'];}
//POST値の処理
foreach($_POST as $k => $v){
if (get_magic_quotes_gpc()){
$v = stripslashes($v);
}
$v = htmlspecialchars($v);
$v = mb_convert_kana($v, "KV");
$_POST["$k"] = $v;
}
mb_convert_variables("utf-8", auto, $_SESSION);
mb_convert_variables("utf-8", auto, $_POST);
if($_GET["s"] == "wb"){$_POST["site"] = "WizBiz";}
else if($_SESSION["site"]){$_POST["site"] = $_SESSION["site"];}
$class_ckana = "form";
$class_cname = "form";
$class_caddress = "form";
$class_category = "form";
$class_kana = "form";
$class_name = "form";
$class_post = "form";
$class_tel = "form";
$class_fax = "form";
$class_mail = "form";
$class_dmail1 = "form";
$class_dmail2 = "form";
$errtext_ckana = "";
$mail_check = '/^[0-9,A-Z,a-z][0-9,a-z,A-Z,_,\.,-]+'
.'@[0-9,A-Z,a-z][0-9,a-z,A-Z,_,\.,-]+\.'
.'(af|al|dz|as|ad|ao|ai|aq|ag|ar|am|aw|ac|au|at|az|bh|bd|bb|by|bj|bm|bt|bo|ba|bw|br|io|bn|bg|bf|bi|kh|cm|ca|cv|cf|td|gg|je|cl|cn|cx|cc|co|km|cg|cd|ck|cr|ci|hr|cu|cy|cz|dk|dj|dm|do|tp|ec|eg|sv|gq|er|ee|et|fk|fo|fj|fi|fr|gf|pf|tf|fx|ga|gm|ge|de|gh|gi|gd|gp|gu|gt|gn|gw|gy|ht|hm|hn|hk|hu|is|in|id|ir|iq|ie|im|il|it|jm|jo|kz|ke|ki|kp|kr|kw|kg|la|lv|lb|ls|lr|ly|li|lt|lu|mo|mk|mg|mw|my|mv|ml|mt|mh|mq|mr|mu|yt|mx|fm|md|mc|mn|ms|ma|mz|mm|na|nr|np|nl|an|nc|nz|ni|ne|ng|nu|nf|mp|no|om|pk|pw|pa|pg|py|pe|ph|pn|pl|pt|pr|qa|re|ro|ru|rw|kn|lc|vc|ws|sm|st|sa|sn|sc|sl|sg|sk|si|sb|so|za|gs|es|lk|sh|pm|sd|sr|sj|sz|se|ch|sy|tw|tj|tz|th|bs|ky|tg|tk|to|tt|tn|tr|tm|tc|tv|ug|ua|ae|uk|us|um|uy|uz|vu|va|ve|vn|vg|vi|wf|eh|ye|yu|zm|zw|com|net|org|gov|edu|int|mil|biz|info|name|pro|jp)$/';
$tel_check1 = '/^0\d{1,4}-\d{1,4}-\d{1,4}$/';
$tel_check2 = '/^0\d{9,10}$/';
////// 都道府県用配列 //////
$preflist = array(
''=>'選択して下さい', '1'=>'北海道', '2'=>'青森県', '3'=>'岩手県',
'4'=>'宮城県', '5'=>'秋田県','6'=>'山形県', '7'=>'福島県', '8'=>'茨城県',
'9'=>'栃木県', '10'=>'群馬県','11'=>'埼玉県', '12'=>'千葉県', '13'=>'東京都',
'14'=>'神奈川県', '15'=>'新潟県','16'=>'富山県', '17'=>'石川県', '18'=>'福井県',
'19'=>'山梨県', '20'=>'長野県','21'=>'岐阜県', '22'=>'静岡県', '23'=>'愛知県',
'24'=>'三重県', '25'=>'滋賀県','26'=>'京都府', '27'=>'大阪府', '28'=>'兵庫県',
'29'=>'奈良県', '30'=>'和歌山県','31'=>'鳥取県', '32'=>'島根県', '33'=>'岡山県',
'34'=>'広島県', '35'=>'山口県','36'=>'徳島県', '37'=>'香川県', '38'=>'愛媛県',
'39'=>'高知県', '40'=>'福岡県','41'=>'佐賀県', '42'=>'長崎県', '43'=>'熊本県',
'44'=>'大分県', '45'=>'宮崎県','46'=>'鹿児島県', '47'=>'沖縄県'
);
// =====================================================================================================
if($_POST['confirm']) {
$flgErr = true;
if($seminar == ""){
$flgErr = false;
$errtext_seminar = " 参加希望セミナーをご選択ください";
}
if($_POST['ckana'] == ""){
$flgErr = false;
$errtext_ckana = "ふりがなをご記入ください
";
$class_ckana = "form_err";
}
if($_POST['cname'] == ""){
$flgErr = false;
$errtext_cname = "会社名をご記入ください
";
$class_cname = "form_err";
}
if($_POST['zip1'] == ""){
$flgErr = false;
$errtext_zip = "郵便番号をご記入ください
";
$class_zip1 = "form_err";
}
if($_POST['zip2'] == ""){
$flgErr = false;
$errtext_zip = "郵便番号をご記入ください
";
$class_zip2 = "form_err";
}
if($_POST['pref'] == "選択して下さい"){
$flgErr = false;
$errtext_pref = "都道府県をご選択ください
";
$class_pref = "form_err";
}
if($_POST['address1'] == ""){
$flgErr = false;
$errtext_address .= "住所をご記入ください
";
$class_address1 = "form_err";
}
if($_POST['category'] == ""){
$flgErr = false;
$errtext_category = "業種をご記入ください
";
$class_category = "form_err";
}
if($_POST['kana'] == ""){
$flgErr = false;
$errtext_kana = "ふりがなをご記入ください
";
$class_kana = "form_err";
}
if($_POST['name'] == ""){
$flgErr = false;
$errtext_name = "氏名をご記入ください
";
$class_name = "form_err";
}
if($_POST['post'] == ""){
$flgErr = false;
$errtext_post = "役職をご記入ください
";
$class_post = "form_err";
}
if($_POST['tel'] == ""){
$flgErr = false;
$errtext_tel = "電話番号をご記入ください
";
$class_tel = "form_err";
} else if(preg_match($tel_check1,$_POST['tel'])||preg_match($tel_check2,$_POST['tel'])){
} else {
$flgErr = false;
$errtext_tel = "電話番号を半角数字で正しくご記入ください
";
$class_tel = "form_err";
}
if($_POST['fax'] == ""){
$flgErr = false;
$errtext_fax = "FAX番号をご記入ください
";
$class_fax = "form_err";
} else if(preg_match($tel_check1,$_POST['fax'])||preg_match($tel_check2,$_POST['fax'])){
} else {
$flgErr = false;
$errtext_fax = "FAX番号を半角数字で正しくご記入ください
";
$class_fax = "form_err";
}
if($_POST['mail'] == ""){
$flgErr = false;
$errtext_mail = "メールアドレスをご記入ください
";
$class_mail = "form_err";
} else if(preg_match($mail_check,$_POST['mail'])){
} else{
$flgErr = false;
$errtext_mail = "メールアドレスを正しくご記入ください
";
$class_mail = "form_err";
}
if($_POST['dmail1'] != ""){
if(!preg_match($mail_check,$_POST['dmail1'])){
$flgErr = false;
$errtext_dmail1 = "メールアドレスは正しくご記入ください
";
$class_dmail1 = "form_err";
}
}
if($_POST['dmail2'] != ""){
if(!preg_match($mail_check,$_POST['dmail2'])){
$flgErr = false;
$errtext_dmail2 = "メールアドレスは正しくご記入ください
";
$class_dmail2 = "form_err";
}
}
if($_POST['agree'] == ""){
$flgErr = false;
$errtext_agree = "ご同意いただけない場合は申込みできません
";
$class_agree = "form_err";
}
if($flgErr) {
$_SESSION = $_POST;
$send = './send.html';
if(isset($_GET['a'])){$send .= '?a='.$_GET['a'];}
header("Location: $send");
}
}
// =====================================================================================================
if($_POST['mode'] == "send") {
$_POST = $_SESSION;
session_destroy();
}
?>
弁護士法人ALG&Associates セミナー申込フォーム
※は入力必須です
参加をするセミナーを選択して下さい。
';} ?>
※参加希望セミナー
現在こちらから申込み可能なセミナーはございません
ALG&Associates Copyright © 2009- ALG&Associates All Rights Reserved.