欢迎光临
我们一直在努力

w3 upload组件实例应用1

建站超值云服务器,限时71元/月

文件1 – upload.asp

<html>

<head>

<title> w3 upload </title>

</head>

<body>

用w3 upload组件上传

<form action="uploadprocess.asp" method="post" enctype="multipart/form-data">

<input type="file" name="thefile"><br>

choose a name: <input type="text" name="name"><br>

<input type="submit" value="transmit">

</form>

</body>

</html>

文件2 – uploadprocess.asp

<% @ language="vbscript" %>

<%

set upload = server.createobject( "w3.upload" )

actualname = upload.form( "name" )

set filename = upload.form( "thefile" )

if filename.isfile then

filename.savetofile( request.servervariables( "appl_physical_path" ) & "\\" & actualname )

end if

%>

<html>

<head>

<title> w3 upload </title>

</head>

<body>

<br>

<br>

<center>

finished!

</center>

<br>

<br>

<br>

</body>

</html>

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » w3 upload组件实例应用1
分享到: 更多 (0)