Login Retreive lost passwordRegister
Search

Manual  /  Functions  /  Other functions  /  FieldExists

FieldExists
FieldExists (
string $field
)

Arguments:

Name Description
$field The field which you want to check if it exists

Description:

Check if the given field exist in the form or not. This could be useful when you create forms dynamicly.

NOTE: This function can only check in the fields which are allready set!

Example

This is the WRONG way!
<?php
echo $form->fieldExists"test" ); // false!!!
$form->textField("Test""test");
?>


This is the CORRECT way!
<?php
$form
->textField("Test""test");
echo 
$form->fieldExists"test" ); // true!!!
?>

Latest change: 21 August 09 / 14:16

Comments

powered by PHP-GLOBE   © 2004 - 2024 FormHandler. All rights reserved.   -   Open source license