主题:怎么获取动态文本框的值
各位:我创建了10个动态文本框,代码如下
在文本框P1中输入值,点确定,返回的都是空,请高手指点下,谢谢
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>ss</title>
</head>
<body>
<form name="editForm" method="post" action="untitled.asp">
<table border="1">
<% for i=1 to 10
response.write"<tr><td><input name='p"&i&"' type='text' /></td></tr>"
next%>
</table>
<a href="untitled.asp?action=aaa">确定</a></form>
</body>
<%call bbb%>
</html>
<%
sub bbb
dim action
action=request.QueryString("action")
if action="aaa" then
response.write request.form("p1")
response.End
end if
end sub
%>
在文本框P1中输入值,点确定,返回的都是空,请高手指点下,谢谢
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>ss</title>
</head>
<body>
<form name="editForm" method="post" action="untitled.asp">
<table border="1">
<% for i=1 to 10
response.write"<tr><td><input name='p"&i&"' type='text' /></td></tr>"
next%>
</table>
<a href="untitled.asp?action=aaa">确定</a></form>
</body>
<%call bbb%>
</html>
<%
sub bbb
dim action
action=request.QueryString("action")
if action="aaa" then
response.write request.form("p1")
response.End
end if
end sub
%>