badaboom55 Posted August 16, 2008 Share Posted August 16, 2008 Hi All, I have a PDF form online (created in Acrobat 9.0 Pro, NOT LiveCycle Designer!) that, once a user has filled it out and clicks the submit button, I want two things to happen: 1) I want the data from the form to be submitted to a custom PHP script, which I can do several different things with (store the data in a MySQL database, for example). 2) I would also like to upload/store/save (not sure of the proper vernacular) the filled out form (FDF file) to the web server. Now what I need from you lovely people, either directly, or point me to where I can find the following: 1) How/What options do I choose for the Submit button in Acrobat 9.0 Pro when I create the PDF? 2) What/Where can I find a PHP code snippet to get the data from fields in the submitted form? 3) I know you can set up an Acrobat form to e-mail a copy of the FDF file to a specified e-mail address. Instead of emailing that FDF file, I want to store it directly to a folder on my web server. However, just setting the URL in the submit button to a folder on my web server doesn't seem to do the trick. So, I guess what I need is to somehow reference the FDF file with my custom PHP script... something like $_POST["fdffile"] ???? Please if anyone knows how to do this, please let me know! Because, if I can reference the FDF file, I can then use PHP's built in FTP functions to upload it to a specific folder on my web server. Thanks for any input!!! Link to comment https://forums.phpfreaks.com/topic/119990-using-php-to-process-submitted-pdf-form-and-upload-fdf-to-server/ Share on other sites More sharing options...
ignace Posted August 16, 2008 Share Posted August 16, 2008 i think that when you click on a submit button in a pdf form the request is made within the client's browser and nothing is submitted to the server (where php would/could handle it), so you will need to create the logic inside your pdf form is using a normal html form possible? Link to comment https://forums.phpfreaks.com/topic/119990-using-php-to-process-submitted-pdf-form-and-upload-fdf-to-server/#findComment-618102 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.