振鐸四十週年影音儲存:修訂版本之間的差異

出自六年制學程
跳轉到: 導覽搜尋
檔案上傳機制
檔案上傳機制
第 11 行: 第 11 行:
 
##檔案目的地資料夾:要從網頁「根目錄」下新增資料夾,讓上傳的檔案有地方去
 
##檔案目的地資料夾:要從網頁「根目錄」下新增資料夾,讓上傳的檔案有地方去
 
#主要程式碼:
 
#主要程式碼:
##html:<pre><html><body><br/>
+
##html:<pre><html><body>
<form method="post" enctype="multipart/form-data" action="upload.php"><br/>
+
      <form method="post" enctype="multipart/form-data" action="upload.php">
  <input type="file" name="my_file"><br/>
+
      <input type="file" name="my_file">
  <input type="submit" value="Upload"><br/>
+
      <input type="submit" value="Upload">
</form><br/>
+
      </form>
</body></html></pre>
+
      </body></html></pre>
 
##php:<pre></pre>
 
##php:<pre></pre>

2022年6月10日 (五) 15:11的修訂版本

檔案上傳機制

  1. 恩濡參考以下資料來源製作「檔案上傳試用網頁」:
  2. 需準備的檔案:
    1. 前台上傳介面:html檔案
    2. 後台工作程式:php檔案
    3. 檔案目的地資料夾:要從網頁「根目錄」下新增資料夾,讓上傳的檔案有地方去
  3. 主要程式碼:
    1. html:
      <html><body>
      
      <form method="post" enctype="multipart/form-data" action="upload.php">
      <input type="file" name="my_file">
      <input type="submit" value="Upload">
      </form>
</body></html>
    1. php: