Page 1 of 1

printing parts of a page

Posted: Mon Jan 26, 2004 11:27 am
by ol4pr0
Oke.. i would like to start making a button_click(); which will print only the values added to a form ( input type )


How would i start on this. tried looking in http://www.php.net however didnt really able to find me something.

example

Code: Select all

echo <<<input
<input type=text name=number1>input1</input>
<input type=text name=number1>input2</input>
input;
Now i would like to have input1 and input2 being printed on Paper.

HOw would i do such a thing?

Posted: Mon Jan 26, 2004 3:05 pm
by ol4pr0
Does anybody have any idea on what i mean?

instead of printing a complete page

Code: Select all

<input type=button value="Print Page" onClick="print()">
i would only like to have it print the inputs of a form.

how would i do that? PHP/ java?

Posted: Tue Jan 27, 2004 3:31 am
by twigletmac
This is a client side problem as PHP really can't control any of this. You probably need to look into generating a print only CSS stylesheet.

Mac

Posted: Tue Jan 27, 2004 8:49 am
by ol4pr0
I am currenlty looking around in Google however if you got some good links where i can look in to this.

i would be a happy person

Posted: Tue Jan 27, 2004 8:53 am
by twigletmac

Posted: Tue Jan 27, 2004 9:16 am
by ol4pr0
Thanks guess i got me some reading to do on CSS2 ;-)