Viewing file: contents_upload.php (1.84 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<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"> </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>
|