Jump to content

I need some help here


elentz

Recommended Posts

I know enough about PHP  to be dangerous.  I have a script that makes a pdf file.  Right now when I run the script I get a prompt to download the pdf.  The script uses FPDF to generate the pdf.  This works fine.  At the end of the script it prompts the user to download and save the script.  What I would like to do is have a form come up that would give the user the ability to : Print, email or save the pdf.  Can someone help me with the code to do this?

 

Thanks  alot

Link to comment
https://forums.phpfreaks.com/topic/39918-i-need-some-help-here/
Share on other sites

Sounds to me that you just need to add another step in the process that would go between the creation of and the download of the PDF file.

 

Step One: click here to create the PDF file

Step Two: PDF file created successfully! Would you like to a) print it, b) download it c) have it emailed to you as an attachment?

Step Three: whichever they choose

 

To do this you'd have to have the PDF file created and placed in a folder on your server then provide the links to it to accomplish the tasks.

Link to comment
https://forums.phpfreaks.com/topic/39918-i-need-some-help-here/#findComment-192974
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.