load_session(); $leaflet->handle_input(); $leaflet->regist_session(); include("form.ihtml"); } // 削除ボタンを押す elseif ( $_POST['d_is'] <> '' ) { $leaflet->load_session(); $leaflet->handle_input(); $leaflet->delete_issue(); $leaflet->regist_session(); include("form.ihtml"); } elseif ( isset($_POST['Confirm']) ) { $leaflet->load_session(); $leaflet->handle_input(); $leaflet->unset_session(); $leaflet->regist_session(); $leaflet->check_input(); if ( $leaflet->err == 1 ) { include("form.ihtml"); } else { include("confirm.ihtml"); } } elseif ( isset($_POST['Submit']) ) { $leaflet->load_session(); $leaflet->check_input(); if ( $leaflet->err == 1 ) { include("form.ihtml"); } else { //メールの送信 $leaflet->send_email(); include("thanks.ihtml"); $leaflet->unset_session(); } } else { if ( !isset($_POST['Return']) ) $leaflet->unset_session(); else $leaflet->load_session(); include("form.ihtml"); } ?>