이미지 파일을 데이터베이스에 업로드하기 전에 두 번째 페이지로 전달하는 방법이 있습니까?업로드하기 전에 다른 페이지로 이미지 업로드 전달
페이지 1
<input type="file" name="image" />
페이지 2
<input style="display:none" name="image" value="<php? echo $_REQUEST['image']; ?>" />
3 페이지 -> 데이터베이스
당신이해야
$target_path = "uploads/";
$image_path_1 = $target_path . basename($_FILES['image']['name']);
move_uploaded_file($_FILES['image']['tmp_name'], $image_path_1);