ID:               16209
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Bogus
 Bug Type:         Session related
 Operating System: windows NT sp6
 PHP Version:      4.0.6
 New Comment:

This is not a support issue.  I know how to get the fdf to work
properly.  It doesn't seem correct that I just add session_start() to
my script and it stops working.


Previous Comments:
------------------------------------------------------------------------

[2002-03-21 14:32:17] [EMAIL PROTECTED]

The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php

------------------------------------------------------------------------

[2002-03-21 14:27:14] [EMAIL PROTECTED]

It seems that the following script will not work properly with the
session_start();

<?php

session_start();

//path to pdf file
$url="http://www.some_url.com/form.pdf";;

$values=$HTTP_POST_VARS;

$fdfdata = "%FDF-1.2\n%‚„œ”\n";
$fdfdata .= "1 0 obj \n<< /FDF ";
$fdfdata .= "<< /Fields [\n"; 

//loop that adds the field names and values
foreach($values as $key=>$val)
        {
        $fdfdata.="<< /V ($val)/T ($key) >> ";
        }

        
$fdfdata .= "]\n";
$fdfdata .= "/F ($url) >>";
$fdfdata .= ">>\nendobj\ntrailer\n<<\n/Root 1 0
R\n>>\n";
$fdfdata .= "%%EOF";

/*** Now we display the FDF data which causes Acrobat to start  ***/

header ("Content-Type: application/vnd.fdf");
print $fdfdata;

?>


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=16209&edit=1

Reply via email to