? session_start(); require "mail.php"; // /*-----------------------------------------------------------------------------* // 確認画面からの戻り時 // *-----------------------------------------------------------------------------*/ // if(isset($_SESSION['contact'])){ // #表示内容を初期化 // $name = isset($_SESSION['contact']['name']) ? $_SESSION['contact']['name'] : ""; // $furigana = isset($_SESSION['contact']['furigana']) ? $_SESSION['contact']['furigana'] : ""; // $zipcode = isset($_SESSION['contact']['zipcode']) ? $_SESSION['contact']['zipcode'] : ""; // $address = isset($_SESSION['contact']['address']) ? $_SESSION['contact']['address'] : ""; // $tel = isset($_SESSION['contact']['tel']) ? $_SESSION['contact']['tel'] : ""; // $fax = isset($_SESSION['contact']['fax']) ? $_SESSION['contact']['fax'] : ""; // $mail = isset($_SESSION['contact']['mail']) ? $_SESSION['contact']['mail'] : ""; // $memo = isset($_SESSION['contact']['memo']) ? $_SESSION['contact']['memo'] : ""; // // $err_msg = $_SESSION['contact']['err_msg']; // // #保存していた内容を削除 // unset($_SESSION['contact']); // /*-----------------------------------------------------------------------------* 最初の表示 *-----------------------------------------------------------------------------*/ } else { #表示内容を初期化 $name = ""; $furigana = ""; $zipcode = ""; $address = ""; $tel = ""; $fax = ""; $mail = ""; $memo = ""; } header("Content-type: text/html; charset=UTF-8"); ?>