做一个上传的表单,如何做呢??

sleepcent 2004-12-02 03:20:52
如题!!
...全文
130 14 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhoutm 2004-12-03
  • 打赏
  • 举报
回复
set con=server.CreateObject ("adodb.connection")
con.Open ("provider=microsoft.jet.oledb.4.0;"&"data source="&server.MapPath ("mydatabase.mdb"))


------------------------------------------------------------------------------

<BODY>
<%
set con=server.CreateObject ("adodb.connection")
con.Open ("provider=microsoft.jet.oledb.4.0;"&"data source="&server.mappath("school.mdb"))

str="insert into student(num,name,sex,birthday,address,remark) values("&Request.Form ("num")&",'"&Request.Form ("name")&"','"&Request.Form ("sex")&"','"&Request.Form ("birthday")&"','"&Request.Form ("address")&"','"&Request.Form ("remark")&"')"
con.Execute (str)

str="select * from student"
set rs=con.Execute (str)
%>
<table border=1 width=90%>
<tr bgcolor=yellow>

<%
for i=0 to rs.fields.count-1
%>
<td>
<%
Response.Write rs.fields(i).name
%>
</td>
<% next %>
</tr>
<% do while not rs.eof %>
<tr>
<%
for i=0 to rs.fields.count-1
%>
<td>
<%
Response.Write rs.fields(i).value&" "
%>
</td>
<% next %>
</tr>
<%
rs.movenext
loop
rs.close
set rs=nothing
con.Close
set con=nothing
%>

</table>
<p></p>
<center>
</center>

</BODY>
xx123731 2004-12-03
  • 打赏
  • 举报
回复
<form name="aa" action="ss.asp" moth="post">
<input type="text">
<input type="submit" value="提交">
</form>
sleepcent 2004-12-03
  • 打赏
  • 举报
回复
那个上传是无组件上传,我明白了这个名字,网站上有得下的,
我自己再研究看看,多谢大家发言啊,我会给分的
zzsdream 2004-12-02
  • 打赏
  • 举报
回复
是一个大问题,应该来说是一个怎么样去考虑学习的问题
wingcn 2004-12-02
  • 打赏
  • 举报
回复
这个还真不算问题。。。
cdsun 2004-12-02
  • 打赏
  • 举报
回复
<form name="up" action="up.asp" method="post" enctype="multipart/form-data">
<table width="100%" border="0">
<tr>
<td>文件:</td>
<td><input name="upfile" type="file" id="upfile"> </td>
</tr>
</table>
</form>
sys9933 2004-12-02
  • 打赏
  • 举报
回复
<form name="up" action="up.asp" method="post" enctype="multipart/form-data">
<table width="100%" border="0">
<tr>
<td>文件:</td>
<td><input name="upfile" type="file" id="upfile"> </td>
</tr>
</table>
</form>
comszsoft 2004-12-02
  • 打赏
  • 举报
回复
good good study,day day up
世界因你而小 2004-12-02
  • 打赏
  • 举报
回复
要一个form,一个submit按钮 form里有action和method
sleepcent 2004-12-02
  • 打赏
  • 举报
回复

"上传"按钮里面要包含什么代码呢?
我用DW做的,数据库用access,
不知道有没有模板教程,
....
aking8736 2004-12-02
  • 打赏
  • 举报
回复
<form name="up" action="up.asp" method="post" enctype="multipart/form-data">
<table width="100%" border="0">
<tr>
<td>文件:</td>
<td><input name="upfile" type="file" id="upfile"> </td>
</tr>
</table>
</form>
yb2008 2004-12-02
  • 打赏
  • 举报
回复
http://www.hc189.com/upload.rar
butcher2002 2004-12-02
  • 打赏
  • 举报
回复
你这个算问题吗?。。。。
alern_zyb 2004-12-02
  • 打赏
  • 举报
回复
<form name="aa" action="ss.asp" moth="post">
</form>

28,409

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧