, 내 index.html 파일의 형태를 갖는다 :PHP 리디렉션 문제는 순간
<div id="submit">
<form action="upload.php" method="post" enctype="multipart/form-data">
Select your file: <input type="file" name="file"><br><br>
<input type="submit" value="Upload">
</form>
</div><!--end submit-->
그것은 내가 그러나 먼저 upload.php 파일에있는 코드를 실행, 나는으로 돌아갑니다 페이지를 싶습니다 index.html 파일.
어떻게해야합니까? 실제로 (공백 포함) 아무것도 출력되지
header('Location: index.html');
exit;
이는 upload.php
경우 작동합니다 : 당신이 upload.php
에서 폼을 처리 완료 후
'
이렇게 사용하면 upload.php 파일의 코드가 실행되지 않습니다. – Glitchezz