Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing out a textbox

Status
Not open for further replies.

TRACEYMARYLAND

Programmer
May 21, 2004
370
US
Hi i have managed to get a form created and then user fills it in...its looks great on the screen they can scroll up and down

Now i need to print this out for them........(But how do i get the text box to print out)...
So they can see it.

My mind has got confused how i can do this.
The data is from a database
below is just the results from the html it writes.


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Form Entry</title>
<link href="../CSS/Accessible_Design_Form.css" rel="stylesheet" type="text/css">

<script language="JavaScript" type="text/javascript" src="windowopen.js">
<!--
// -->
</script>

<link href="CSS/Accessible_Design.css" rel="stylesheet" type="text/css">
</head>

<body>


<table width="760" border="" bordercolor="" bgcolor="" >
<tr valign="top">


<td width="" border="" bordercolor="" bgcolor="" >
MYTEXT
</td>

<td width="3" border="" bordercolor="" bgcolor="" >
<textarea name="FIELD_ID_1056" cols="100" rows="3" >
THIS IS THE LONG LONG TEXT AND MORE OF IT SO THAT IT 1
THIS IS THE LONG LONG TEXT AND MORE OF IT SO THAT IT 2
THIS IS THE LONG LONG TEXT AND MORE OF IT SO THAT IT 3
THIS IS THE LONG LONG TEXT AND MORE OF IT SO THAT IT 4


</textarea>
</td>









<input type=hidden name=intRecords value = "3" >

</table>


<br>
</p>




<p align="center">&nbsp;</p>
</body>
</html>


Database part
<textarea name="FIELD_ID_<%=rs("FIELD_ID")%>" cols="<%=rs("FIELDNAMESIZE")%>" rows="<%=rs("FIELDNAMESPACE")%>" >
<%if request("AmendDetails") = "Y" then %>
<%=trim(rs("FIELD_TEXT"))%>
<%end if%>
 
i think u have to use CSS.

using CSS u can hide certain things for prinitng and print certain things that are not visible. so u can have something like this:
<textarea style="VisibleToUsButNotPrinter">asdasdasd</textarea>
<div style="VisibleToPrinterButNotToUs">asdasdasd</div>

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top