// 회원 등록
if ($mode == "input") {
// 프로필 이미지 처리
$arr = explode(".", $_FILES["photo"]["name"]);
$ext = end($arr);
$photo = $id . "." . $ext;
copy($_FILES["photo"]["tmp_name"], "../data/profile/" . $photo);
$arr = [
"id" => $id,
"name" => $name,
"password" => $password,
"email" => $email,
"zipcode" => $zipcode,
"addr1" => $addr1,
"addr2" => $addr2,
"photo" => $photo,
];
$mem->input($arr);
}

// 회원 등록
public function input($marr)
{
$sql = "INSERT INTO member(id, name, password, email, zip_code, addr1, addr2,photo, create_at, ip) VALUES(:id, :name, :password, :email, :zipcode, :addr1, :addr2, :photo, NOW(), :ip)";
$stmt = $this->conn->prepare($sql);
$stmt->bindParam(":id", $marr["id"]);
$stmt->bindParam(":name", $marr["name"]);
$stmt->bindParam(":password", $marr["password"]);
$stmt->bindParam(":email", $marr["email"]);
$stmt->bindParam(":zipcode", $marr["zipcode"]);
$stmt->bindParam(":addr1", $marr["addr1"]);
$stmt->bindParam(":addr2", $marr["addr2"]);
$stmt->bindParam(":photo", $marr["photo"]);
$stmt->bindParam(":ip", $_SERVER["REMOTE_ADDR"]);
$stmt->execute();
}
}

다음 시간에는 이메일 형식 체크와 가입 성공했을 시 페이지로 이동하는 부분을 해보겠습니다.
긴 글 봐주셔서 감사합니다.