job sheet generator

Discussion in 'PHP' started by webber09, Jan 30, 2011.

  1. #1
    hello again all,

    I am looking to create a page that will work to create a job sheet. basically I guess I need to create a html form to collect the data i need. Once the user (one of my staff) have entered the information I want, I need it to automatically enter the info into a template and be able to print.

    any ideas on the best way?
     
    webber09, Jan 30, 2011 IP
  2. Tutorial Feed

    Tutorial Feed Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you had a form that posted to a PHP enabled page that rendered the information on a blank page, or formatted how you would want it to be printed, you can then trigger a print command using javascript like so:

    <script type="text/javascript">window.print();</script>
    Code (markup):
    EDIT: Actually, you may be better linking this to a body onLoad event.
     
    Tutorial Feed, Jan 30, 2011 IP
  3. webber09

    webber09 Active Member

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    #3
    right okay, so if i create the html form and get the info to follow on to the next page (PHP) where i want it all it will print correctly?
     
    webber09, Jan 30, 2011 IP
  4. G3n3s!s

    G3n3s!s Active Member

    Messages:
    325
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    80
    #4
    It will print output of page. Sorry if I didn't get you
     
    G3n3s!s, Jan 30, 2011 IP