|
下面是我的代码,只修改到第一个表(Father表)请问怎么修改才能实现我题目的要求,谢谢先!
<%if Request.QueryString("nono")="yesyes" then
FatherID=request("FatherID")
FatherName=request("FatherName")
If FatherName="" Then
response.write "<div align='center'><br><br><br><br><br><br></div>"
response.write "<div align='center'>父亲姓名不能为空<br><br><br></div>"
response.write ("<div align='right'><a href='javascript:history.back( )'><<<我忘了</a></div>")
response.end
end if
BigClassName=replace(trim(Request("BigClassName")),"'","")
BigClassName_en=replace(trim(Request("BigClassName_en")),"'","")
set rs=server.createobject("adodb.recordset")
sql="select * from Father where FatherID="&FatherID
rs.open sql,conn,1,3
rs("FatherName")=FatherName
rs.update
rs.close
response.redirect "Father.asp"
end if
%>
<%
FatherID=request.querystring("FatherID")
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "Select * From Father where FatherID="&FatherID, conn,3,3
%> |
|