在提交时,我的表单变量被写入数据库,页面将更改为下一页但地址栏不会更改。即使视图是mobile3.asp,它仍然说mobile2.asp。我错过了什么?
<head>
<title>mysite</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="include/js/jquery.mobile-1.2.0.min.css" />
<link rel="stylesheet" href="css/themes/mycss.css" />
<script src="include/js/jquery.js"></script>
<script src="include/js/jquery.mobile-1.2.0.js"></script>
<%
dim EN
EN = xss_Clean(Request.Form("EN"))
If Request.ServerVariables("REQUEST_METHOD")= "POST" Then
write_element "EN", EN
response.redirect "mobile3.asp"
End if
%>
</head>
<div data-role="content">
<form action="mobile2.asp" method="post">
<div id="entries" class="list" data-theme="a">
<label for="EN" class="select"><h1 class="header">Number required</h1></label>
<select name="EN">
<option value="1">1</option>
<option value="10">10</option>
<option value="15">15</option>
<option value="20">20</option></select>
</div>
<button type="submit" data-theme="b" name="submit" value="submit-value" class="ui-btn-hidden" aria-disabled="false" data-ajax="false">Proceed</button>
</form>
</div>
答案 0 :(得分:1)
可能在重定向上关闭引用?
response.redirect "mobile3.asp"