getValue()

clonefish->getValue() - get the value of a form element

Description

class clonefish {
  mixed getValue( string $name, boolean $addslashes )
}

Returns the value of an element and adds slashes using addslashes() if needed.

It is a helpful shortcut instead of:

$element = $clonefish->getElementByName('fieldname');
$value   = $element->getValue( 1 );

Parameters

$name

The name of the form element

$addslashes

Whether or not slashes should be added to the returned value.

Return values

Returns the value of the element when the element is found, returns FALSE otherwise.

Examples

<?php 

echo $clonefish->getValue'login');

?>

form validation for developers!

clonefish is a proven, mature form generator class that helps PHP developers to create, validate and process secure, flexible and easy-to-maintain forms
learn more
Bookmark and Share