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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.