<html>
<head>
<title>Upload and Insert Local File</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<script language="javascript">

UPLOADSCRIPT = "upload.php"; // absolute
POOLDIR = "/uploads"; // always relative to upload.pl
POOLURL = "/uploads"; // always absolute
FILESIZE = "1048576"; // 1024k, -10M for content

function goSubmit() {
    with(document.forms[0]) {
        action = UPLOADSCRIPT
        pooldir.value = POOLDIR
        poolurl.value = POOLURL
        filesize.value = FILESIZE
        submit()
    }
}

</script>
</head>

<body>
<center>
  <form method="post" enctype="multipart/form-data">
    <TABLE width="550" border="1" cellpadding="2" cellspacing="3" bgcolor="#F5F6F8" style="font-family:Tahoma; font-size:12px;" cellpading="0">
      <TR bgcolor="#CCCCCC"> 
        <TD colspan="2" valign="top" bgcolor="#E8E7F7" align="center" style="padding:5px 0px 5px 0px">ประเภทไฟล์ เป็น (.doc, .xls) , ไฟล์ซิป (.zip, .tar) 
            ไฟล์รูปภาพ .jpg และ .gif เท่านั้น หรือ ไฟล์ Flash (.swf) 
            ชื่อไฟล์ ต้องเป็นภาษาอังกฤษ, ห้ามเคาะ หรือ เว้นวรรค , ใช้อักษรระหว่าง a-z</TD>
      </TR>
      <TR> 
        <TD width="158" align="right">เลือกไฟล์ :</TD>
        <TD width="333" align="left" valign="top"><input name="file" type="file" size="35" accept="application/x-www-form-urlencoded" /></TD>
      </TR>
      <TR> 
        <TD align="center">&nbsp;</TD>
        <TD align="left"> 
          <input onClick="goSubmit()" title="Upload" type="button" value="อัพโหลด" style="width:60px" />
          <input onClick="self.close()" title="Close" type="button" value="ปิด" style="width:60px" />
        </TD>
      </TR>
    </TABLE>
   <input type="hidden" name="pooldir" value="">
   <input type="hidden" name="poolurl" value="">
   <input type="hidden" name="filesize" value="">
  </form>
</center>
</body>
</html>