$val){ $current = str_replace(".php","",$val); } //ログインしている場合は強制的にログアウトさせます unset($_SESSION['user_id']); //戻ってきた場合のセッション $regist = $_SESSION['regist']; $error = $_SESSION['error']; //パスワードの入力例を生成 function rand_passwd($len = 8, $str = '0123456789abcdefghijklmnopqrstuvwxyz'){ $exam_pass = ""; srand((float)microtime()*10000000); for($i = 0; $i < $len; $i ++){ $exam_pass .= substr($str, rand(0, strlen($str) - 1), 1); } return $exam_pass; } $exam_pass = rand_passwd(8); //郵便番号、電話番号、FAX番号を分割 if(is_array($regist)){ $array_zip_code = explode("-", $regist['zip_code']); $array_tel = explode("-", $regist['tel']); $array_fax = explode("-", $regist['fax']); } $h1_title = "新規会員登録"; ?>