현재 양식을 사용하여 파일을 업로드합니다.성공적인 업로드 사용자에게 알리기
양식은 index.html을이고 같습니다 그러나 올바른 위치에
<?php
move_uploaded_file ($_FILES['file'] ['tmp_name'], "uploads/{$_FILES['file'] ['name']}");
header('Location: index.html');
exit; ?>
파일 업로드, 나는 방법이 필요합니다 :
이<div id="submit">
<form action="upload.php" method="post" enctype="multipart/form-data">
Select XML file: <input type="file" name="file"><br><br>
<input type="submit" value="Upload">
</form>
</div><!--end submit-->
upload.php로 파일의 모습 업로드가 완료되었음을 사용자에게 경고합니다. 누군가 제발 좀 도와 줄래?
왜 그냥가 당신의'upload.php'는 다시 전송하는 응답 성공 메시지를 포함 브라우저? 리디렉션하는 대신에, 그것은 있습니다. – Wyzard
다시로드하여 양식을 다시 제출하지 못하게하려면 리디렉션해야합니다. – jeffff