用Netscape Navigator发布文件

ZDNet软件频道 时间:2000-06-13 作者:Susie Adams |  我要评论()
本文关键词:
要把文件投递到远端服务器上,您不必编写自己的ASP应用程序。您能够使用Netscape Navigator 来发布您的成果。
Listing A: The upNetscape.asp page.
<% Response.Buffer = TRUE %>
<!--#include file="pasetup.inc"-->

<html>
<body BGCOLOR = "#FFFFFF" TOPMARGIN = "0" LEFTMARGIN = "0" 
        TEXT = "#000000" LINK = "#0000CC" VLINK = "#0000CC" 
        ALINK = "#0000CC" STYLE = "text-decoration: none">

<table CELLPADDING = "0" CELLSPACING = "5" 
        BORDER = "0" WIDTH = "600">
<tr>
<td VALIGN = "bottom" HEIGHT = "15">
 
</td>
</tr>
</table>
<table CELLPADDING = "0" CELLSPACING = "4" 
        BORDER = "0" WIDTH = "600">
<tr>
<td VALIGN="top">

</td>
<td WIDTH = "2" BGCOLOR = "#990033">
 
</td>
<td>

<p><font face = "Arial,Helvetica" SIZE = "4"><b>
        Welcome <%=Request.ServerVariables("LOGON_USER")%>
        to the HTTP
Post Upload Page</b></font> </p>

<p>Use this page upload your content to <b>
        <%= Request.ServerVariables("SERVER_NAME")%> 
        </b>. Type the path and
filename for up to three files to be uploaded 
        to this server. If you are unsure of the 
        path, click the Browse
        buttons. When finished, click Upload.</p>

<form enctype="multipart/form-data" action="
        <%= PostingURL%>" method="post"><p>
        File to process: <input name = "my_file" type="file"><br>
        File to process: <input name = "my_file" type="file"><br>
        File to process: <input name = "my_file" type="file"><br>
        Destination URL: <input name = "TargetURL" value="
        <%= TargetURL %>" size = "40"><br>
        <input type = "submit" value = "Upload"> </p>
</form>
</font>
</td>
</tr>
</table>
</body>
</html>

百度大联盟认证黄金会员Copyright© 1997- CNET Networks 版权所有。 ZDNet 是CNET Networks公司注册服务商标。
中华人民共和国电信与信息服务业务经营许可证编号:京ICP证010391号 京ICP备09041801号-159
京公网安备:1101082134