Function form_selected
Allow you to select the option of a drop-down list.
Package: PHPLucidFrame\Core
Copyright: Copyright (c), PHPLucidFrame.
License: MIT License This source file is subject to the MIT license that is bundled with this source code in the file LICENSE
Author: Sithu sithu@phplucidframe.com
Located at helpers/form_helper.php
Copyright: Copyright (c), PHPLucidFrame.
License: MIT License This source file is subject to the MIT license that is bundled with this source code in the file LICENSE
Author: Sithu sithu@phplucidframe.com
Located at helpers/form_helper.php
string |
$name |
The field name of the drop-down list |
mixed |
$value |
The option value to check against |
mixed |
$defaultValue = null |
The default selected value (optional) |
string
|
'selected="selected"' if the option is found, otherwise the empty string returned
|