Print a Page !!!

Discussion in 'PHP' started by pulikuttann, Mar 30, 2007.

  1. #1
    I want to add a section in my php package to print the bill.Is it possible ???

    By the way.From where I can get all the functions and its details in php ?
     
    pulikuttann, Mar 30, 2007 IP
  2. Rub3X

    Rub3X Well-Known Member

    Messages:
    1,902
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    135
    #2
    PHP is server side, you're looking for the javascript forum.
     
    Rub3X, Mar 30, 2007 IP
  3. pulikuttann

    pulikuttann Banned

    Messages:
    1,839
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Sorry !!!
    Please excuse me !
     
    pulikuttann, Mar 30, 2007 IP
  4. jitesh

    jitesh Peon

    Messages:
    81
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you want to print a webpage refer a javascript function
    "window.print();"

    <input type=button name=print value=print onclick="javascript:window.print();">
     
    jitesh, Mar 30, 2007 IP
  5. srobona

    srobona Active Member

    Messages:
    577
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    88
    #5
    Try this:

    var message = "Print this Page";

    function printpage() {
    window.print();
    }

    document.write("<form><input type=button "
    +"value=\""+message+"\" onClick=\"printpage()\"></form>");
     
    srobona, Mar 30, 2007 IP