$v) { $_POST[$k] = stripslashes($v); } } } if($_SERVER['QUERY_STRING'] != "") { if(ini_get('magic_quotes_gpc') == "1") { foreach($_GET as $k => $v) { $_GET[$k] = stripslashes($v); } } } // フォームオブジェクト $formObj = new My_FormCheck("localhost", "formClass"); $_INPUT = $formObj->getInputData($_POST); // 登録処理 if ($_INPUT["act"] == ACT_REGIST) { // 入力チェック if($_INPUT["chk_type"] == TYPE_SHORT_SLEEVE) { getShortFormError(&$formObj, $_INPUT); $read_file = "tpl/in_short_sleeve.php"; } if($_INPUT["chk_type"] == TYPE_LONG_SLEEVE) { getLongFormError(&$formObj, $_INPUT); $read_file = "tpl/in_long_sleeve.php"; } else if($_INPUT["chk_type"] == TYPE_ETC) { getEtcFormError(&$formObj, $_INPUT); $read_file = "tpl/in_etc.php"; } // 入力エラー無し if (!$formObj->err) { $_SESSION["ERROR"] = ""; $_SESSION["FORM_VIEW"] = ""; $_SESSION["FORM"] = $formObj->form; // 確認画面へ header ("location: confirm.php?t=" .time()); } else { $_SESSION["FORM_VIEW"] = $formObj->form; $_SESSION["ERROR"] =$formObj->err; } } // 再入力 else if ($_INPUT["act"] == ACT_REINPUT) { $formObj->form = $_SESSION["FORM"]; $_SESSION["FORM_VIEW"] = $_SESSION["FORM"]; } else { $_SESSION["ERROR"] = ""; $_SESSION["FORM_VIEW"] = ""; $_SESSION["FORM"] = ""; } ?>