set_sender($sender);
$a_form->set_reply_address($reply_address);
$a_form->set_subject($subject);
$a_form->set_content($content);
$_SESSION['contact_form'] = $a_form;
// 確認画面へ
include('../inc/contact_table2.inc');
}
else {
// 入力の場合はセッションの削除。
unset($_SESSION['contact_form']);
// 入力画面へ
include('../inc/contact_table.inc');
}
}
// 確認して送信
else if (isset($_POST['contact_3'])) {
// セッションの開始
session_start();
$a_form = $_SESSION['contact_form'];
include('../inc/contact_ok.inc');
}
// 初期画面
else {
// パラメータは初期化
$reply_address = '';
$subject = '';
$content = '';
include('../inc/contact_table.inc');
}
?>