getArrValue($arrData, 'm'); if (isset($arrData['contact']) === true) { $sSelect = $clsLibrary->getArrValue($arrData, 'contact'); } switch ($sMode) { case 'prev'://修正 $sInclude = $sForm; $flg = 1; break; case 'confirm'://確認 $sInclude = $sConfirm; //入力チェック if ($clsMail->chkValid($arrData) === false) { $sInclude = $sForm; $arrMsg = $clsMail->getLastError(); } else { $arrData['m'] = 'mod'; } break; case 'mod'://送信 //入力チェック if ($clsMail->chkValid($arrData, 1) === false) { $sInclude = $sForm; $arrMsg = $clsMail->getLastError(); } else { //送信処理 if ($clsMail->sendmail($arrData) === false) { $sInclude = $sForm; $arrMsg = $clsMail->getLastError(); } else { $arrData['m'] = ''; header("Content-Type: text/html; charset=utf-8"); header("Expires: Thu, 01 Dec 1994 16:00:00 GMT"); header("Last-Modified: ". gmdate("D, d M Y H:i:s"). " GMT"); header("Cache-Control: no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); header("HTTP/1.1 301 Moved Permanently"); header("Location: {$sCompletePage}"); exit; } } break; default: $sInclude = $sForm; break; }/* switch m */ if ((is_array($arrMsg) === true) && (count($arrMsg) > 0)) { $error = '
'.implode('
', $arrMsg).'
'; $flg = 1; } else { $error = ' '; } if ($sInclude == $sForm) { //電話番号初期値 if (strlen($clsLibrary->getArrValue($arrData, 'tel1')) == 0) { $arrData['tel1'] = '市外'; } if (strlen($clsLibrary->getArrValue($arrData, 'tel2')) == 0) { $arrData['tel2'] = '市内'; } if (strlen($clsLibrary->getArrValue($arrData, 'tel3')) == 0) { $arrData['tel3'] = '番号'; } if (strlen($clsLibrary->getArrValue($arrData, 'site')) == 0) { $arrData['site'] = 'http://social-ads.net/'; } //お問い合わせ内容 $arrContact = array( 1 => array('id'=>'contact1', 'name'=>'contact[]', 'value' => '', 'disp' => '--選択する--', 'checked' => ''), 2 => array('id'=>'contact2', 'name'=>'contact[]', 'value' => '御見積', 'disp' => '御見積', 'checked' => ''), 3 => array('id'=>'contact3', 'name'=>'contact[]', 'value' => '資料請求', 'disp' => '資料請求', 'checked' => ''), 4 => array('id'=>'contact4', 'name'=>'contact[]', 'value' => 'その他', 'disp' => 'その他', 'checked' => ''), ); } } catch (Exception $e) { $sInclude = $sForm; } require_once($sInclude); ?>