comarea没有显示我已经尝试<%= comarea%> 其他人都像<%= comid%> 或<%= compwd%> 我认为它与sql数据形式有关 comdid和compwd是sql中的varchar,只有comarea是文本数据形式 我应该更改comarea数据表吗?
<%
Option explicit
Dim comseq,intseq,comid,compwd,comarea,dtm_date
Dim objrs,objdbconn,dsntest
Dim comsql
Dim intnowpage,intpagesize,ascdesc
intseq=request.querystring("seq")
comseq=request.querystring("comseq")
Set objdbconn=server.createobject("adodb.connection")
Set objrs=server.createobject("adodb.recordset")
dsntest=""
objdbconn.open dsntest
comsql="select comid,compwd,comarea from comment where intseq =" &intseq
comsql=comsql & " and comseq = " &comseq
objrs.open comsql,objdbconn
comid=objrs(0)
compwd=objrs(1)
comarea=objrs(2)
%>
<!-- #include virtual="remake/SideBar.asp" -->
<div class="card">
<form method="post" name="comform" action="content_ok.asp?seq=<%=intseq%>">
<div class="card-block">
<div class="form-group row">
<div class="col-sm-2">
<input type="text" class="form-control" placeholder="<%=objrs(0)%>" name="comid">
</div>
<div class="col-sm-2">
<input type="password" class="form-control" placeholder="<%=objrs(1)%>" name="compwd">
</div>
</div>
<div class="form-group row">
<div class="col-sm-10">
<textarea rows="5" cols="5" class="form-control" name="comarea"><%=objrs(2)%></textarea>
</div>
</div>
<div align="center">
<button class="btn btn-primary" onclick="submit()?seq=<%=intseq%>">저장</button>
</div>
</div>
</form>
</div>
<!-- #include virtual="remake/Script.asp" -->
[enter image description here][1]
[1]: https://i.stack.imgur.com/lTR6J.png