Re: fdf and pfd functions in PHP
| From: | mheumann at sei dot cl | Date: | Thu, 24 May 2001 16:36:00 +0000 |
| Subject: | Re: fdf and pfd functions in PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-54243@lists.php.net to get a copy of this message | ||
Hi,
I think this is more complicated. You'll need to create the FDF file manually pertaining to the
format
specifications. You will have to use the data posted from the HTML form, but just writing them out
to the
file won't do the trick. I haven't done this with PHP yet, maybe the fdf functions
provided can help you
somewhat with the format.
Greetings,
Michael.
> Okay, I'm trying to teach myself how to utilize fdf and insert into pdf and
> I have a question for y'all. When using pfd forms to submit to an fdf file,
> the php script uses the variable $HTTP_RAW_POST_DATA as the source to write
> to the fdf file. If I use an HTML form to do the same thing, what variable
> would I use? I tried $HTTP_POST_DATA and it returned an empty variable set
> resulting in an empty fdf file. The code I'm using is as follows:
>
> <?php
> $fdffp = fopen("test.fdf","w");
> fwrite($fdffp, $HTTP_POST_DATA, strlen($HTTP_POST_DATA));
> fclose($fdffp);
> ?>
>
> Sorry for the basic question but I guess we all have to start somewhere!
>
> Cheers,
>
> Dave
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net