ASP的信息页面跳转

来源:百度知道 编辑:UC知道 时间:2024/05/23 23:28:58
用response和另个函数(另个函数叫什么我自己也不记得了).也就是说在一个个人资料页面填写好东西后点提交,提交后就跳转到另个页面,跳转到的页面就会显示之前第一个页面所填写的资料,哪位高手会可以给小弟我代码?

用表单来提交数据,表单的action设置你要跳转的页面就行了。以下是个简单的例子:

<form name="aa" action="b.asp" method="post">
输入名字:<input name="name" type="text">
<input type="submit" name="submit" value="提交">
</form>

b.asp中的代码

<%
response.write "你输入的名字是:"&request.form("name")
%>

response.write "<script>window.location.href='news_edit.asp?id="&cint(request.Form("id"))&"'</script>"