www.webdeveloper.com
Results 1 to 4 of 4

Thread: php form reply with attachment like invoice or html but needs different invoice #

  1. #1
    Join Date
    May 2013
    Posts
    3

    Question php form reply with attachment like invoice or html but needs different invoice #

    Ok,

    What I am trying to achieve is automatic invoicing to customer after they have filled out my contact form.
    what would be good if the script could automatically generate a pdf which quotes their name, product,date, and a message from me saying thank you blah blah blah.

    but the pdf isn't essential even if it was just a html invoice quote the customers name, product, date, invoice number, upon completion of the form but the invoicing would need to be sequential so constantly increasing by 1 number some sort of auto generating invoice

    thanks to all I've tried searching for tutorials but its hard because I don't exactly know what I am meant to be searching for to find this.


    thanks & regards,

    hugo

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,408
    One way is to simply output the invoice as an HTML page, but include a "print" media type in that page's CSS style settings to tailor things for when it's sent to the printer (e.g. suppressing display of site navigation menus or purely decorative graphics, making everything black on white, and so forth).

    If you really want/need to go the PDF route, there are a few PHP classes/functions out there that can be used. I used TCPDF with decent success a couple years ago, and I think FPDF is another one that's pretty popular.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    May 2013
    Posts
    3
    You wouldn't happen to have that script still laying about please because I wouldn't know where to start. Or if you could point me to a tut that will cover this itwould be greatly appreciated.

    Thanks for replying by the way.

    Hugo

  4. #4
    Join Date
    May 2013
    Posts
    3
    Just recap I new to coding and php I just about can send forms but I don't know how I would attached a HTML file to be automatically sent to an email after filling out the form

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles