类型:转载 责任编辑:asp 日期:2007/03/01
第一个页面有这么个表格:
老师名 课程名
张三 电子技术
———
李四 微机原理
———
这个表的程序:
<table class="out_style" cellpadding="0" cellspacing="1" bgcolor="white" bgcolor="white" height="6">
<colgroup><col span="4" valign="bottom" nowrap>
<tr>
<td colspan="2" height="1"><!--mstheme--><font face="宋体"><font style="font-size: 3px"> </font><!--mstheme--></font></td>
</tr>
<tr valign="center">
<td width="50%" height="12">
<!--mstheme--><font face="宋体">
<p align="left">教师名<!--mstheme--></font></td>
<td width="50%" height="12">
<!--mstheme--><font face="宋体">
<p align="left">课程名<!--mstheme--></font></td>
</tr>
<tr height="5" bgcolor="black">
<td height="1"><!--mstheme--><font face="宋体"><!--mstheme--></font></td>
<td height="1"><!--mstheme--><font face="宋体"><!--mstheme--></font></td>
</tr>
<%
if not rs.eof then
while not rs.eof
%>
<tr bgcolor="#fffff0">
<td height="30" valign="center"><!--mstheme--><font face="宋体">【<a href="student_value_ll.asp" target="right"><%=rs("jsm")%></a>】『【】里面是显示老师的名字』<!--mstheme--></font></td>
<td height="30" valign="center"><!--mstheme--><font face="宋体">【#<%=rs("kcm")%>#】『【##】里面显示课程名字』<!--mstheme--></font></td>
</tr>
<%
rs.movenext
wend
else
response.write ("<td colspan=""3"">没有满足条件的记录</td>")
end if
%>
</table>
下一个页面
student_value_ll.asp中:
<div align=center><font size=4 face="黑体">请认真填写你对<font
color=#0000ff【-<%=rs("jsm")%>-】『【--】里面是显示上面【】中相对应的名字,但现在不能显示出来,它老是显示数据库中第一条记录里面老师的名字。各位大哥这里应该怎样把上面【】里面我一点那个老师的名字这里也能出现这个老师的名字』 老师</font>的评价</font></div><font size=3 face="楷体_gb2312"><br><strong>总体印象</strong></font><br>
推荐阅读
第一个页面这里这样写:
<a href="student_value_ll.asp?jsm=<%=rs("jsm")%>" target="right">
下一个页面:
<% jsm=request.querystring("jsm") %>
然后:
div align=center><font size=4 face="黑体">请认真填写你对<font
color=#0000ff【-<%=jsm%>-】