Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- CutePDF and PHP
March 13, 2009, 7:40 pm
rate this thread
and CutePDF Form Filler) that I want to put on my site. I set the
form's SUBMIT button properties to send the data in FDF format to
another php page (named recv.php), which will be set up to generate an
email with the fdf file as an attachment.
My problem is that I cannot "find" the FDF file with the php code!!
I assumed that it would be in a $_POST array, but no luck. For
debugging purposes, recv.php currently has just the following code:
When I "Submit" from the form, recv.php prints a empty array.
But...if I change the PDF form's submit property to HTML format, the
data comes across just fine as a POST array. But I wanted the data in
fdf format, as that can be easily reconstituted.
Can anyone here point out the errors? I'm guessing I am missing
something basic, but I am too new to programming to see it. The
CutePDF site has no clues for the clueless, like me, and Googling the
problem did not turn up a solution.
Re: CutePDF and PHP
Sorry, my crystal ball is broken, so I have no idea what you're doing in
Did you try asking CutePDF support? When dealing with a product, that's
usually the best place to start They know their code better than anyone.
Remove the "x" from my email address
JDS Computer Training Corp.
March 17, 2009, 12:56 pm
Re: CutePDF and PHP
I've never worked with PDF forms but I'm pretty sure that there isn't
such thing as "PDF data format". When you send the data, you send the
data, not the PDF file itself. It's the same as when you send an HTML
form: you send a serialized version of the values you entered, not the
form itself. And, trust me, you don't want to parse a PDF file with PHP
to find embedded data.
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com