求多媒体文件上传到指定文件夹,并入库的ASP源代码

来源:百度知道 编辑:UC知道 时间:2024/05/27 02:45:41
请大家帮忙,高分100分!
二进制代码也可以的!
我需要两个页面:表单输入页(form.asp)和处理页面(over.asp)
在form.asp中,我需要 名称(name):
介绍(introduction):
文件地址():
相关图片(pic):
在over.asp中,不仅要把文件传给指定文件夹(没有则创建文件夹),给上传的文件命名为当前时间或者是其他都可以,并且要把从上页表单传过来的值和当前文件的真实路径入库!
数据库字段名为:
name(名称)
intrdduction(介绍)
url(该文件详细地址)
pic(相关图片)
请各位高手赐教!我QQ170816958 在线等咯!

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
font-size:12px;
}
a {
font-size: 12px;
}
-->
</style>
<script language="JavaScript" type="text/javascript">

function showimg()
{
parent.document.beauty_in.preindex.src=document.beauty_in.file1.value;
}

function indexsize()
{
if (parent.document.beauty_in.preindex.fileSize > 1024*1024)
{
parent.document.beauty_in.preindex.src = "images/default.gif";
parent.document.beauty_in.file1.value = "";
alert ("您上传的首页相片大于1M,请重新上传");
}
}
</script>