You appear to be a bot. Output may be restricted
Description
Create an input field of type text
Usage
$string = itext( $name, $len, $value, $class, $extras, $args );
Parameters
- $name
- ( string ) required – the field name
- $len
- ( integer ) required – the field length
- $value
- ( string ) required – the field value
- $class
- ( string ) optional – any class name to apply
- $extras
- ( string ) optional – additional values for the HTML input tag
- $args
- ( array ) optional – even more options
Returns
string the HTML input tag
Source
File name: oik-bwtrace/libs/bobbforms.php
Lines:
1 to 18 of 18
function itext( $name, $len, $value, $class=null, $extras=null, $args=null ) { $type = bw_array_get( $args, "#type", "text" ); $it = "<input"; $it.= kv( "type", $type ); $it.= kv( "size", $len ); $it.= " name=\""; $it.= $name; $it.= "\" id=\""; $it.= $name; $it.= "\" value=\""; $it.= esc_attr( $value ); $it.= "\" class=\""; $it.= $class; $it.= "\""; $it.= $extras; $it.= " />"; return $it; }