load_session(); $reserve->handle_input(); $reserve->regist_session(); include("form.ihtml"); } // 削除ボタンを押す elseif ( $_POST['d_jyo'] <> '' || $_POST['d_sh'] <> '' || $_POST['d_to'] <> '' || $_POST['d_ws'] <> '' ) { $reserve->load_session(); $reserve->handle_input(); if ( $_POST['d_jyo'] <> '' ) $reserve->delete_jyoen(); if ( $_POST['d_sh'] <> '' ) $reserve->delete_showcase(); if ( $_POST['d_to'] <> '' ) $reserve->delete_tottori(); if ( $_POST['d_ws'] <> '' ) $reserve->delete_ws(); $reserve->regist_session(); include("form.ihtml"); } // セレクトの選択肢が変わる elseif ( $_POST['c_jyo'] <> '' || $_POST['c_sh'] <> '' || $_POST['c_to'] <> '' || $_POST['c_ws'] <> '' ) { $reserve->load_session(); $reserve->handle_input(); $reserve->unset_session(); $reserve->regist_session(); include("form.ihtml"); } elseif ( isset($_POST['Confirm']) ) { $reserve->load_session(); $reserve->handle_input(); $reserve->unset_session(); $reserve->regist_session(); $reserve->check_input(); if ( $reserve->err == 1 ) include("form.ihtml"); else include("confirm.ihtml"); } elseif ( isset($_POST['Submit']) ) { $reserve->load_session(); $reserve->check_input(); if ( $reserve->err == 1 ) { include("form.ihtml"); } else { //メールの送信 $reserve->send_confirm_email(); $reserve->send_email(); include("thanks.ihtml"); $reserve->unset_session(); } } else { if ( !isset($_POST['Return']) ) $reserve->unset_session(); else $reserve->load_session(); include("form.ihtml"); } ?>