p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   PHP How-To (http://p2p.wrox.com/forumdisplay.php?f=98)
-   -   how to format a diplayed page for print (http://p2p.wrox.com/showthread.php?t=20919)

lanita November 6th, 2004 10:40 PM

how to format a diplayed page for print
 
Hello,
Could you please give me an idea how to implement "view page for print" button which displays a page formatted for a print.

For example I have a script:

<form method="post" action="transact-article.php"
<table>
  <tr>
    <td>Title<td>
    <td>Body1<td>
   <tr>
<tr>
    <td> <?php outputTitle($row['record_id']); ?></td>
    <td> <?php outputBody1($row['record_id']); ?></td>
<tr>
 echo '<input type="submit" class="submit" name="action" "value=\"Print View\" />\n";

What should I write in transact-article.php in order to display the table so that all the coulumns fit to the print page and don't overflow out of page borders?

Thank you,
Lanita


All times are GMT -4. The time now is 06:37 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.