Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2004
    Posts
    30

    Unanswered: printout button with php

    i just have no idea on how to make the application with button "Print" so that users can print out the page by clicking the button.
    any idea or hints for me please?

    thanks

  2. #2
    Join Date
    Apr 2006
    Location
    Denver, Co. USA
    Posts
    242
    PHP runs on the web server and only outputs content to a browser. A php script is finished running once the page has been sent. Printing a page in a browser is a browser function. Having a print button on a page can only be accomplished using javascript. See this link for an example - http://www.dynamicdrive.com/dynamicindex9/other1.htm

  3. #3
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    another alternative is to send a PDF to the viewer based on the users selections using the excellent inbuilt PDF writer / class in the newer versions of PHP or failing that there used to be a great PDF class creatred by a guy from New Zealand (Infact it may be his library that is now incorporated in PHP)

    http://www.ros.co.nz/pdf
    I'd rather be riding on the Tiger 800 or the Norton

  4. #4
    Join Date
    Jul 2004
    Posts
    30
    thanks dbmab & healdem!
    i'll checkout both links and try them out! ^^

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •