Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fdf_set_value(3) [php man page]

FDF_SET_VALUE(3)							 1							  FDF_SET_VALUE(3)

fdf_set_value - Set the value of a field

SYNOPSIS
bool fdf_set_value (resource $fdf_document, string $fieldname, mixed $value, [int $isName]) DESCRIPTION
Sets the $value for the given field. PARAMETERS
o $fdf_document - The FDF document handle, returned by fdf_create(3), fdf_open(3) or fdf_open_string(3). o $fieldname - Name of the FDF field, as a string. o $value - This parameter will be stored as a string unless it is an array. In this case all array elements will be stored as a value array. o $isName - Note In older versions of the FDF toolkit last parameter determined if the field value was to be converted to a PDF Name (= 1) or set to a PDF String (= 0). The value is no longer used in the current toolkit version 5.0. For compatibility reasons it is still supported as an optional parameter beginning with PHP 4.3, but ignored internally. RETURN VALUES
Returns TRUE on success or FALSE on failure. CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 4.3.0 | | | | | | | Support for arrays in the $value parameter was | | | added. | | | | +--------+---------------------------------------------------+ SEE ALSO
fdf_get_value(3), fdf_remove_item(3). PHP Documentation Group FDF_SET_VALUE(3)

Check Out this Related Man Page

FDF_OPEN(3)								 1							       FDF_OPEN(3)

fdf_open - Open a FDF document

SYNOPSIS
resource fdf_open (string $filename) DESCRIPTION
Opens a file with form data. You can also use fdf_open_string(3) to process the results of a PDF form POST request. PARAMETERS
o $filename - Path to the FDF file. This file must contain the data as returned from a PDF form or created using fdf_create(3) and fdf_save(3). RETURN VALUES
Returns a FDF document handle, or FALSE on error. EXAMPLES
Example #1 Accessing the form data <?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 $fdf = fdf_open("test.fdf"); /* ... */ fdf_close($fdf); ?> SEE ALSO
fdf_open_string(3), fdf_close(3), fdf_create(3), fdf_save(3). PHP Documentation Group FDF_OPEN(3)
Man Page