?php
/
/
Save
the
FDF
data
into
a
temp
file
$fdffp
=
fopen(
"test.fdf"
,
"w")
;
fwrite($fdffp
,
$HTTP_FDF_DATA
,
strlen($HTTP_FDF_DATA))
;
fclose($fdffp)
;
/
/
Open
temp
file
and
evaluate
data
/
/
The
pdf
form
contained
several
input
text
fields
with
the
names
/
/
volume
,
date
,
comment
,
publisher
,
preparer
,
and
two
checkboxes
/
/
show_publisher
and
show_preparer
.
$fdf
=
fdf_open("test.fdf")
;
$volume
=
fdf_get_value($fdf
,
"volume")
;
echo
"The
volume
field
has
the
value
'
B
$volume
/
B
'
BR
"
;
$date
=
fdf_get_value($fdf
,
"date")
;
echo
"The
date
field
has
the
value
'
B
$date
/
B
'
BR
"
;
$comment
=
fdf_get_value($fdf
,
"comment")
;
echo
"The
comment
field
has
the
value
'
B
$comment
/
B
'
BR
"
;
if(fdf_get_value($fdf
,
"show_publisher"
)
==
"On"
)
{
$publisher
=
fdf_get_value($fdf
,
"publisher")
;
echo
"The
publisher
field
has
the
value
'
B
$publisher
/
B
'
BR
"
;
}
else
echo
"Publisher
shall
not
be
shown
.
|