中国金融认证中心客服:ASP怎么能按照自己的要求来设计表单?

来源:百度文库 编辑:高校问答 时间:2024/04/30 04:01:20
自己想做一个活动报名程序,怎么用ASP设计表单啊?

比如需要填写
姓名:
联系方式:
活动路线:
活动时间:
类似于这样的,怎么设计呢?

给你一个源代码:(要处理表单提交的信息,要在自己的电脑里建立IIS服务器,我给你的源代码必须在IIS服务器支持下才能运行)
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>活动</title>
</head>

<body>
<%if request.form="" then%>
<p>注册活动信息</p>
<form name="form1" method="post" action="baninfo2.asp">
<p>姓名:
<input name="name" type="text" id="name">
</p>
<p>联系方式:
<input name="lxfs" type="text" id="lxfs">
</p>
<p>活动路线:
<input name="lx" type="text" id="lx">
</p>
<p>活动时间:
<input name="sj" type="text" id="sj">
</p>
<p>
<input type="submit" name="Submit" value="显示提交内容">
</p>
</form>
<%else%>
<%
response.write "姓名:"&request.form("name")
response.write "<br>"
response.write "联系方式:"&request.form("lxfs")
response.write "<br>"
response.write "活动路线:"&request.form("lx")
response.write "<br>"
response.write "活动时间:"&request.form("sj")
%>
<%end if%>
</body>
</html>