Page 1 of 1
Print forms
Posted: Thu Jul 25, 2002 11:17 am
by Z3r0Tol3ranc3
does anyone knows the code 2 print a form content with multiple forms on 1 page and all sepperate printable
Posted: Thu Jul 25, 2002 1:36 pm
by gnu2php
I don't quite understand the question. Are you trying to have multiple forms (such as <form action="...">...</form>) on a page, but have them share the same input fields?
Or are you wondering how to get the contents of multiple forms by using the $_POST variable? Note that you can only get the input of one form, since only one form can be submitted at a time.
Posted: Fri Jul 26, 2002 2:18 am
by Z3r0Tol3ranc3
no, i want to PRINT it with my printer, a button witch gives command for printing the form
Posted: Fri Jul 26, 2002 2:22 am
by hob_goblin
he wants multiple inputs to be printed seperately.. ie input #1 is on one page.. input #2 is on the next, etc..
buddy, this a php forum.. php can't do that. thats a browser thing.. you could try doing it in javascript
Posted: Fri Jul 26, 2002 2:36 am
by twigletmac
CSS2 can be used to force page-breaks using the page-break-before or page-break-after properties. However, I doubt if this is supported by any but the latest browsers.
Mac
Posted: Fri Jul 26, 2002 2:47 am
by gnu2php
JavaScript code for printing:
Code: Select all
<input type="button" onClick="window.print()" value="Print">
Posted: Sat Jul 27, 2002 3:41 am
by Z3r0Tol3ranc3
thx, i'll try it out