I’m a novice so forgive me if this is another learning experience for me.
I have a fill-able PDF and I’m looking to include a submit button. The program I used to create it came with such a button and I have it directed to this php code that was offered by the applications creator.
However, apparently Fill-able PDF forms are a little complex. The code doesn’t save a copy of the form filled out. It temporarily makes a copy of the filled-in data as a FDF form. The link to it becomes available to “Save Target As” but the server only has the FDF data file available for 10 minutes. PLUS no one would be able to view that FDF file without the PDF file it was paired up with.
This system just doesn’t work for me, even if I extended the time limit for the deletion.
I need people to be able to actually save a copy of the PDF filled out with their information for their records. If that’s at all possible without buying some software.
If it would help to see the PHP code I currently have then I’ll gladly post it.
What exactly are you trying to do, in simple terms?
If all you want to do is pre-populate a PDF form with information submitted from a form (or a database), it is a fairly simple process. The PDF would then come up with their information. They could then print or save the PDF file to their computer.
The best solution that I have come across for this type of thing that doesn’t require any additional PHP modules is here: http://koivi.com/fill-pdf-form-fields/
I actually just did a project this week that utilized this, so it is fresh in my head. Let me know if you need any help with it.
I have a fill-able pdf on my website. I want a customer to be able to fill in all the fields and click a “Submit” button that then sends the pdf and filled-in data to an email address so that a customer service rep can access the email and the form+data easily.
I also wouldn’t mind if the customer could save the pdf+data to their computer as one file to then be attached to an email and sent.
I’m not sure if what you’re suggesting is what I’m looking to do, but I really appreciate the help.
Yes, you can send the PDF as an attachment through an email with this method. You should be able to do whatever you want with it. If I was you I would first get a simple example working without emailing it and then add that feature as you understand and get familiar with how it works.
Here are a few other examples that will help you with this:
Thanks Chris! I’m going to go check this out… hopefully it’s not too far over my head. (honestly, all I do is tweek simple scripts and use ‘include’ commands… I’m REALLY a novice)