this is my source :
<?
$pdf_source = "http://mysite.com/pdf/myform.pdf" ;
$fdf_out = "myform.fdf" ;
reset ($HTTP_POST_VARS);
$i = 0 ;
while (list ($k, $v) = each ($HTTP_POST_VARS) )
{
$champs[$i] = $k ;
$valeur[$i] = $v ;
$i ++ ;
}
$outfdf = fdf_create();
//fdf_set_value($outfdf, "volume", $volume, 0);
$j = 0 ;
while ($j < $i )
{
fdf_set_value($outfdf, $champs[$j], $valeur[$j] , 0);
$j++ ;
}
fdf_set_file($outfdf, $pdf_source);
fdf_save($outfdf, $fdf_out);
fdf_close($outfdf);
Header("Content-type: application/vnd.fdf");
$fp = fopen($fdf_out, "r");
fpassthru($fp);
unlink($fdf_out);
?>
And i'd like to add pages if $valueX > 10 (for example)
There is the 2 functions written in my previous post.
I've tried to use them, but I don't know where to put the line, and really how to use it. I've tried many solutions, but no way 🙁