<!--#include file="conn.asp" -->
<%
name=request("name1")
pwd0=request("pwd0")
pwd1=request("pwd1")
set rs=server.CreateObject("ADODB.RecordSet")
sql="select * from admin where admin_name='"&name&"'"
Rs.Open Sql,Conn,1,3
If Rs.Eof And Rs.Bof Then
rs.addnew
rs("name")=name
rs("pwd0")=pwd0
rs("pwd1")=pwd1
rs.updata
response.write "<script language=JavaScript>" & chr(13) & "alert('OK! 信息修改成功!');"&"window.location.href = 'admin.asp'"&" </script>"
set rs=nothing
else
response.write "<script language=JavaScript>" & chr(13) & "alert('对不起!不能修改!');" & "history.back()" & "</script>"
end if
rs.close
set rs=nothing
set conn=nothing
%>
整页换下.看看行不.