asp重定向

来源:百度知道 编辑:UC知道 时间:2024/05/15 11:44:33
第一个页面提交后转到第二个页面去
第一个
<html>
<head>
<title>注册</title>
<script language="vbscript">
Private Sub window_OnLoad()
For i=0 to 6
frmRes.elements(i).value=" "
next
end sub
</script>
</head>
<body bgcolor="#800000">
<p align="center"><strong><font size="6">欢迎访问网上书店</font></strong></p>
<p align="center"><b>请先进行注册</b></p>
<form method="POST" action="--WEBBOT-SELF--" name="frmRes" response.redirect "/购书页面.htm" >
<table border="1" width="100%" id="table1" height="240">
<tr><td width="632">姓名:<input type="text" name="txtName" size="20"></td>
<td>地址:<input ty

<form method="POST" action="--WEBBOT-SELF--" name="frmRes" response.redirect "/购书页面.htm" >

没见过这种用法,改成
<form method="POST" action="/购书页面.htm" name="frmRes">
多简单。

改成这样:
<html>
<head>
<title>注册</title>
<script language="vbscript">
Private Sub window_OnLoad()
For i=0 to 6
frmRes.elements(i).value=" "
next
end sub
</script>
</head>
<body bgcolor="#800000">
<p align="center"><strong><font size="6">欢迎访问网上书店</font></strong></p>
<p align="center"><b>请先进行注册</b></p>
<form method="POST" action="第二个页面.asp" > '这里写上第二个页面的URL
<table border="1" width="100%" id="table1" h