$v){ $v = preg_replace("/^usr_/","",$v); if($v == "num"){ $_SESSION[$v] = @MT_NUM(); }else if($v == "zip"){ $_SESSION["zip1"] = preg_replace("/[^\d]/","",mb_convert_kana(f("zip1"),"n","utf-8")); $_SESSION["zip2"] = preg_replace("/[^\d]/","",mb_convert_kana(f("zip2"),"n","utf-8")); }else if($v == "tel"){ $_SESSION["tel1"] = preg_replace("/[^\d]/","",mb_convert_kana(f("tel1"),"n","utf-8")); $_SESSION["tel2"] = preg_replace("/[^\d]/","",mb_convert_kana(f("tel2"),"n","utf-8")); $_SESSION["tel3"] = preg_replace("/[^\d]/","",mb_convert_kana(f("tel3"),"n","utf-8")); }else if($v == "fax"){ $_SESSION["fax1"] = preg_replace("/[^\d]/","",mb_convert_kana(f("fax1"),"n","utf-8")); $_SESSION["fax2"] = preg_replace("/[^\d]/","",mb_convert_kana(f("fax2"),"n","utf-8")); $_SESSION["fax3"] = preg_replace("/[^\d]/","",mb_convert_kana(f("fax3"),"n","utf-8")); }else if($v == "mail"){ $_SESSION[$v] = preg_replace("/[^0-9a-zA-Z-_\.@]/","",mb_convert_kana(f($v),"rn","utf-8")); $_SESSION[$v."_check"] = preg_replace("/[^0-9a-zA-Z-_\.@]/","",mb_convert_kana(f($v."_check"),"rn","utf-8")); }else if($v == "site"){ $site = f($v); list(,$site_check) = explode("//",$site); if($site_check){ $_SESSION[$v] = $site; }else{ $_SESSION[$v] = ""; } }else if($v == "inside"){ $_SESSION[$v] = $com_num; }else if($v == "question_select"){ $_SESSION[$v."1"] = f($v."1"); $_SESSION[$v."2"] = f($v."2"); $_SESSION[$v."_eny"] = f($v."_eny"); }else{ $_SESSION[$v] = f($v); } } // アンケート値取得(DBフィールド無し/メール文内に保存) $_SESSION["an_question"] = f("an_question"); $_SESSION["an"] = f("an"); $_SESSION["an_eny"] = f("an_eny"); // 必須チェック $flag = 0; if(!$_SESSION["name"]){ $name_e = eMess("必須項目です!","p");$flag++;} if(!$_SESSION["kana"]){ $kana_e = eMess("必須項目です!","p");$flag++;} if(!$_SESSION["zip1"] || !$_SESSION["zip2"]){ $zip_e = eMess("必須項目です!","p");$flag++;} if(!strlen($_SESSION["pref"])){ $pref_e = eMess("必須項目です!ご選択ください。","p");$flag++;} if(!$_SESSION["city"]){ $city_e = eMess("必須項目です!","p");$flag++;} $check_mail = 0; if(!$_SESSION["mail"]){ $mail_e = eMess("必須項目です!","p");$flag++;$check_mail++;} if(!$_SESSION["mail_check"]){ $mail_check_e = eMess("必須項目です!","p");$flag++;$check_mail++;} if(!$check_mail){ if(!$_SESSION["mail_check"]){ $mail_check_e = eMess("必須項目です!","p");$flag++; }else{ if(!@mailcheck($_SESSION["mail"])){ $mail_e = eMess("メールアドレスをご確認ください!","p");$flag++; }else{ if($_SESSION["mail"] != $_SESSION["mail_check"]){ $mail_check_e = eMess("メールアドレスをご確認ください!","p");$flag++; } } } } if(!$_SESSION["tel1"] || !$_SESSION["tel2"] || !$_SESSION["tel3"]){ $tel_e = eMess("必須項目です!","p");$flag++;} if(!strlen($_SESSION["main_question"])){ $main_question_e = eMess("必須項目です!ご選択ください。","p");$flag++;} if(!$_SESSION["comment"]){ $comment_e = eMess("必須項目です!","p");$flag++;} } if(!$flag){ @header("Location: check.php"); exit; } } // ホームページ初期値 if(!$_SESSION["site"]){ $_SESSION["site"] = "http://";} ?> モリマシナリー株式会社 お問合せ
HOME > お問合せ
お問合せフォーム

※【 必須 】項目は、必ずご記入ください。

企業・団体名
業 種