[求助]如只想打印某个页面中某个输入框的内容,又怎么办呢?
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!-- #include file="conn.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>::::::</title>
<link href="../css/fontsize.css" rel="stylesheet" type="text/css">
<link href="../css/input_form.css" rel="stylesheet" type="text/css">
<link href="../css/inputform1.css" rel="stylesheet" type="text/css">
<link href="../css/selectform.css" rel="stylesheet" type="text/css">
<link href="../css/inputform2.css" rel="stylesheet" type="text/css">
<link href="../css/inputform3.css" rel="stylesheet" type="text/css">
<link href="../css/inputform3.css" rel="stylesheet" type="text/css">
<link href="../css/link.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
background-image: url(../pictures/beij.jpg);
}
.style4 {
color: #CC33CC;
font-size: 14px;
}
.style5 {color: #0000FF}
.style6 {
color: #006600;
font-size: 14px;
}
.style8 {color: #FF0000; font-size: 12px; }
.style9 {color: #CC6699}
-->
</style></head>
<body bgcolor="#6699cc" >
<p>
<%
'---------------------以下是显示要修改的信息模块------------------------
set rs = server.CreateObject("adodb.recordset")
id=request("id")
sql = "select * from lgjbhjb where id = "+cstr(id)
rs.open sql,conn,1,3
%>
</p>
<form name="input_form" action="save_laigaodengji_modify.asp" method="post" onSubmit="return checkform();">
<tr>
<td height="23"> </td>
</tr>
<tr>
<td>
<table width="680" border="0" align="center" cellpadding="0" cellspacing="0" style="border-collapse: collapse">
<tr area="fontsize">
<td width="50%" height="30"> <div align="center">
<p align="left"><font color="#663300" size="3"><img src="../pictures/fox.gif" width="35" height="31"> </font><font size="3"><span class="style5"> </span></font><span class="style5"><span class="style6">只想打印下框的内容</span></span></p>
<p> </p>
</div></td>
</tr>
<tr area="fontsize">
<td height="18"><table width="680" height="373" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#33CCFF">
<tr align="center" valign="middle">
<td height="20" colspan="3" bgcolor="#99CCFF"><span class="style8"><%=date()%></span></td>
<td height="20" bgcolor="#99CCFF"><span class="style4"><%=rs("gjbt")%></span></td>
</tr>
<tr align="center" valign="middle">
<td height="356" colspan="3" background="../pictures/01view_bg.gif" bgcolor="#99CCCC"> </td>
<td width="611" height="356" bgcolor="#CCCCFF"><div align="right">
<textarea name="gjnrjj" cols="84" rows="26" id="gjnrjj">只想打印这个框里的内容,代码怎么写,谢谢!!</textarea>
</div></td>
</tr>
</table></td>
</tr>
<tr area="fontsize">
<td height="15"><table width="652" border="0" align="center" cellpadding="0" cellspacing="0">
</table></td>
</tr>
<tr area="fontsize">
<td height="18">
<div align="right">
<input type="button" name="Submit3" value="返 回" onClick="go_back();">
<input name="id" type="hidden" id="id" value="<%=id%>">
</div></td></tr>
<tr class="fontsize">
<td> </td>
</tr>
<tr class="fontsize">
<td><div align="right" class="style9"><font size="2">我只想打印以上输入框的内容</font></div></td>
</tr>
</table>
</td>
</tr>
</form>
<%
rs.close
set rs = nothing
conn.close
set conn = nothing
%>
</body>
</html>