欢迎光临
我们一直在努力

数据库记录的表格显示,编辑与更新

建站超值云服务器,限时71元/月

<html><head>
<title>authoredit.asp</title>
</head><body bgcolor="#FFFFFF">
<%
‘ My ASP program that given an AU_ID, allows editing a record

myDSN="DSN=Student;uid=student;pwd=magic"

set conntemp=server.createobject("adodb.connection")
conntemp.open myDSN
form_ID=request.querystring("which")

sqltemp="select * from authors "
sqltemp=sqltemp & " where AU_ID=" & form_id

set rstemp=conntemp.execute(sqltemp)

form_auID=rstemp("AU_ID")
form_author=rstemp("Author")
form_year_born=rstemp("Year_Born")

rstemp.close
set rstemp=nothing
conntemp.close
set conntemp=nothing
%>
<body>
<form name="myauthor" action="authoreditrespond.asp" method="POST">

<input type="hidden" name="id" value="<%=form_auid%>">

<p>Author ID: <%=form_auid%></p>

<p> Author Name:
<input type="TEXT" name="name" value="<%=form_author%>"></p>

<p> Year Born:
<input type="TEXT" name="year" value="<%=form_year_born%>"></p>

<p> <input type="SUBMIT"> </p>
</form>

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 数据库记录的表格显示,编辑与更新
分享到: 更多 (0)

相关推荐

  • 暂无文章