遇到一个ASP循环的问题 求解决方法
asp吧
全部回复
仅看楼主
level 1
x_fongdong 楼主
<!--#include file="inc/yinuosoft_conn1.asp"-->
<!--#include file="inc/yinuosoft_config.asp"-->
<!--#include file="inc/yinuosoft_function.asp"-->
<%
%>
<html>
<head>
<title><%=MM_company%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="admin/images/main.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width=100% height=100% background="images/bg1.gif" >
<tr><td>
<div align="center">
<table width="600" border="0" cellpadding="0" cel
lsp
acing="0">
<TR >
<TD align=middle width="300" valign="top" height=300 >
<marquee direction=up scrollamount=3 height="233" width="300" onMouseOver="javascript:this.stop()" onMouseOut="javascript:this.start()">
<%set rs=conn.execute("select * from tab_system ")
if rs("zd_opensearch")=true then
opensearch=true
response.write rs("zd_searchopeninfo")
else
opensearch=false
response.write rs("zd_searchcloseinfo")
end if%>
</marquee>
</TD>
<TD align=center width="1" valign="middle" height=300 bgcolor=#CDE1F4> </td>
<TD align=center width="300" valign="middle" height=300>
<form name="frmsearch" method=post action="result.asp" <%if opensearch=false then %> onsubmit="javascript:return false;" <%end if%>>
<TABLE cellSpacing=0 cellPadding=4 width="249">
<%
txtmode=checkvalue("tab_system","1=1","zd_searchmode")
N=split(txtmode,",")
For i = 0 To UBound(N)
%>
<TR>
<TD align="right"><%=checkvalue("tab_title","zd_order="&N(i),"zd_title")%>:</TD>
<TD>
<INPUT class=field <%if i=0 then%> value =""<%end if%> <%if i=1 then%> value =""<%end if%>style="border-width:0px; PADDING-LEFT: 25px; BACKGROUND: url('images/user_login_password.gif') no-repeat; WIDTH: 165px; LINE-HEIGHT: 20px; HEIGHT: 21px" size=27 name="txt_<%=trim(N(i))%>" maxlength="50" <%if opensearch=false then %>disabled <%end if%>></TD>
</TR>
<%next%>
<TR align=middle>
<TD colSpan=2 height=40 align="center">
<input type="submit" value="查询" name="btnadd" <%if opensearch=false then %>disabled <%end if%>> 
<input type="reset" value="重填" name="B2" <%if opensearch=false then %>disabled <%end if%>> 
<input type="button" value="留言" name="btngbook" onclick="javascript:window.location.href='gbook.asp'">
</TD></TR></TABLE>
</form>
</TD></TR>
</TABLE>
</div>
</td>
</tr>
</table>
</HTML>
<%conn.close
set conn=nothing%>
这是一个查询系统的查询界面,浏览器中显示成这样的:
但是现在密码要隐藏成×,所以不是要在input后面定义为 input type="password" 对吧,
但是在源代码里面我一定义,又因为有个循环,所以变成了这样:
求能不能把这个循环去掉,单独写出两个输入栏,然后让上面明文,下面加密。
有人能帮忙吗?真心不懂ASP。
2014年04月22日 08点04分 1
level 1
“把循环去掉,单独写出两个输入栏,然后让上面明文,下面加密”很容易,关键是你要实现什么功能:查询账号、密码还是登录?
2014年09月05日 01点09分 2
level 11
应该是有两个input框 把上面的input框改成 input type="text" 下面的改成input type="password"
2014年09月05日 01点09分 3
1