<?php session_start();?><html><head>
<title>上載文件檔案</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body><div><?php
$dateTime2 = new DateTime("now", new DateTimeZone('Asia/Taipei'));
$year=$dateTime2->format("Y");
$month=$dateTime2->format("m");
?>
 <form  action="updata2.php" method="post" 
        enctype="multipart/form-data">
 請輸入年份(西元年份)：<input type="number" name="years" 
                    value="<?php echo $year; ?>" required><br>
 請輸入月份：<input type="number" name="months" 
              value="<?php echo $month; ?>" required><br>
 請輸入文件主題：<input type="text" name="docutitle" required ><br>
 請輸入關鍵字/全文(提供檢索查詢)：<br>
 <textarea name="keywords" cols="50" rows="10" ></textarea> <br>
 選擇檔案：  <input name="userfile" type="file"><br>
 <input type="submit" value="送出">
 <input type="reset" value="取消">
 </form></div>
 </body></html>