PHP
downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

FDF 関数> <定義済み定数
Last updated: Fri, 09 Jan 2009

view this page in

以下の例でフォームデータの評価に関して説明します。

例1 FDF ドキュメントの評価

<?php
// 拡張モジュールが提供する入力文字列から fdf をオープンします。
// pdf フォームには volume, date, comment, publisher, preparer
// という名前のテキスト入力フィールドと 2 つのチェックボックス
// show_publisher および show_preparer があるものとします。
$fdf fdf_open_string($HTTP_FDF_DATA);
$volume fdf_get_value($fdf"volume");
echo 
"volume フィールドの値は '<b>$volume</b>'<br />";

$date fdf_get_value($fdf"date");
echo 
"date フィールドの値は '<b>$date</b>'<br />";

$comment fdf_get_value($fdf"comment");
echo 
"comment フィールドの値は '<b>$comment</b>'<br />";

if (
fdf_get_value($fdf"show_publisher") == "On") {
  
$publisher fdf_get_value($fdf"publisher");
  echo 
"publisher フィールドの値は '<b>$publisher</b>'<br />";
} else
  echo 
"Publisher は非公開です。<br />";

if (
fdf_get_value($fdf"show_preparer") == "On") {
  
$preparer fdf_get_value($fdf"preparer");
  echo 
"preparer フィールドの値は '<b>$preparer</b>'<br />";
} else
  echo 
"Preparer は非公開です。<br />";
fdf_close($fdf);
?>



add a note add a note User Contributed Notes
There are no user contributed notes for this page.

FDF 関数> <定義済み定数
Last updated: Fri, 09 Jan 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites