如何向自身传递变量呢?
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<table width="576" height="127" border="1">
<tr>
<td>请定制<font color="#FF0000"><%= request.Form("z2")%></font>的行与列</td>
</tr>
<tr>
<td>
<form name="form1" method="post" action="">
<p>
<%
dim r,c
r=request.Form("x") '行数
c=request.Form("y") '列数
response.write "<table border='1'>"
for i=1 to r
response.write "<tr>"
for n=1 to c
'if (i=1 or n=1) then
'response.Write "<td> </td>"
'else
response.write "<td><input name="&i&""&n&" type='text' id="&i&""&n&" size='10'></td>"
'end if
next
response.write "</tr>"
next
response.write "</table>"
%>
</p>
<p>
<input type="submit" name="Submit" value="提交">
</p>
</form>
</td>
</tr>
</table>
<%
for i=1 to r
for n=1 to c
if request.Form(""&i&""&n&"") <>"" then
x=request.Form(""&i&""&n&"")
response.Write x
end if
next
next
%>
</body>
</html>
这个页面里面的变量 r 和 c 都是从前一个页面传递过来的。但是为什么当我在点“提交”按钮之后。R 和 C的值就没有了。我点提交后还是需要这两个变量的。(红色的代码)。我应该怎么做啊??<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<table width="576" height="127" border="1">
<tr>
<td>请定制<font color="#FF0000"><%= request.Form("z2")%></font>的行与列</td>
</tr>
<tr>
<td>
<form name="form1" method="post" action="">
<p>
<%
dim r,c
r=request.Form("x") '行数
c=request.Form("y") '列数
response.write "<table border='1'>"
for i=1 to r
response.write "<tr>"
for n=1 to c
'if (i=1 or n=1) then
'response.Write "<td> </td>"
'else
response.write "<td><input name="&i&""&n&" type='text' id="&i&""&n&" size='10'></td>"
'end if
next
response.write "</tr>"
next
response.write "</table>"
%>
</p>
<p>
<input type="submit" name="Submit" value="提交">
</p>
</form>
</td>
</tr>
</table>
<%
for i=1 to r
for n=1 to c
if request.Form(""&i&""&n&"") <>"" then
x=request.Form(""&i&""&n&"")
response.Write x
end if
next
next
%>
</body>
</html>
QUOTE: