// Open fdf from input string provided by the extension 
// 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_string($HTTP_FDF_DATA); 
$volume = fdf_get_value($fdf, "volume"); 
echo "The volume field has the value '$volume'
"; 
$date = fdf_get_value($fdf, "date"); 
echo "The date field has the value '$date'
"; 
$comment = fdf_get_value($fdf, "comment"); 
echo "The comment field has the value '$comment'
"; 
if(fdf_get_value($fdf, "show_publisher") == "On") { 
 $publisher = fdf_get_value($fdf, "publisher"); 
 echo "The publisher field has the value '$publisher'
"; 
} else 
 echo "Publisher shall not be shown.
"; 
if(fdf_get_value($fdf, "show_preparer") == "On") { 
 $preparer = fdf_get_value($fdf, "preparer"); 
 echo "The preparer field has the value '$preparer'
"; 
} else 
 echo "Preparer shall not be shown.
"; 
fdf_close($fdf); 
?>