客户断和服务器段如何交互

ygd 2002-05-17 10:26:47
举例说明
...全文
70 8 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
Lostinet 2002-05-17
  • 打赏
  • 举报
回复
http://lostinet.d2g.com/Lostinet-Publish/JScriptSoapClient/eg2.htm
ceen 2002-05-17
  • 打赏
  • 举报
回复
这样也可以:
客户端:
index.html
<html>
<body>
<input type="button" value="提交" name="enter">
<script language="vbscript">
sub enter_onclick
window.location.href ="server.asp?action=zz"
end sub
</script>
</body>
</html>
服务器端
server.asp
<%
response.write request("action")
%>
ceen 2002-05-17
  • 打赏
  • 举报
回复
这样也可以:
客户端:
index.html
<html>
<body>
<input type="button" value="提交" name="enter">
<script language="vbscript">
sub enter_onclick
window.location.href ="server.asp?action=zz"
end sub
</script>
</body>
</html>
服务器端
server.asp
<%
response.write request("action")
%>
希偌 2002-05-17
  • 打赏
  • 举报
回复
<a href="test.asp?value=test">click</a>
*************
test.asp
*************
<%=request.querystrint("value")%>
ChinaOk 2002-05-17
  • 打赏
  • 举报
回复
执行ASP程序就可以了。
传递参数。执行操作。
wangfei2428 2002-05-17
  • 打赏
  • 举报
回复
index.htm
<html>
<head>
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000" scroll=no>
<form name="form1" method="post" action="index.asp">
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20"><font face="宋体" size="2">请输入:</font></td>
<td height="20">
<input type="text" name="name">
<input type="submit" name="Submit" value="确定">
</td>
</tr>
</table>
</form>
</body>
</html>


index.asp
<%
name=request("name")
response.write "我的名字是"&name&""
%>
MeXP 2002-05-17
  • 打赏
  • 举报
回复
index.htm
<html>
<head>
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000" scroll=no>
<form name="form1" method="post" action="index.asp">
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20"><font face="宋体" size="2">请输入:</font></td>
<td height="20">
<input type="text" name="name">
<input type="submit" name="Submit" value="确定">
</td>
</tr>
</table>
</form>
</body>
</html>


index.asp
<html>
<head>
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="宋体" size="2">您输入的姓名是 <%=request.form("name")%> </font> <br>
<font size="3"><b>客户端提交数据,服务器端处理返回,这就是一个简单的交互例子</b></font>
</body>
</html>
freezwy 2002-05-17
  • 打赏
  • 举报
回复
客户端使用FORM提交请求,服务器端根据ASP/PHP/JSP反馈请求,就这么简单。

28,409

社区成员

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

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