how to print out a form using php ???

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
schumywan
Forum Newbie
Posts: 1
Joined: Thu Nov 02, 2006 11:24 am

how to print out a form using php ???

Post by schumywan »

i have a form that create using php.. now i wanna print in out. how can i print it out in php ???

thanks
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

well unless you want your server to print it out... you can't. You need to use javascript or something...

Code: Select all

window.print()
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Printing from the browser has serious limitations. Your best bet is to generate a PDF document with the auto print flag. Search these boards for "auto print".
Post Reply