name
Definition and Usage The name attribute specifies the name for a drop-down list. It assigns a name to the input control. The name attribute is used to reference elements in a JavaScript, or to reference form data after a form is submitted.
form
Definition and Usage It designates the form(s) to which the <select> element belongs. The form attribute specifies one or more forms the drop-down list belongs to. It specifies the ID of a form to which this control belongs. Possible values: [The ID of a form element in the element's owner Document] : form_id
disabled
Definition and Example The disabled attribute is a boolean attribute.When present, it specifies that the drop-down list should be disabled. A disabled drop-down list is unusable and un-clickable. It disables the input control. The form control won't accept changes from the user and also cannot receive focus. If the attribute is present, its value must...
autofocus
Definition and Usage The autofocus attribute of select tag is a boolean attribute. When present, it specifies that the drop-down list should automatically get focus when the page loads. This allows the user to start using the control without having to select it first. There must not be more than one element in the document with...
size
Definition and Example It defines the number of visible items in the drop-down list. If the size attribute has the value "1" and the multiple attribute is absent, browsers will usually display a drop-down box. Otherwise, the control will take the form of a scrollable box. In size attribute of select tag , if you...
multiple
Definition and Usage The multiple attribute of select tag is a boolean attribute which allows the user to select more than one option can be selected at a time. Browsers typically present multiple select lists in a different way to a normal select list. If the multiple attribute isn't present in the control, only one...
Php 5 strings
PHP 5 Strings A string is a sequence of characters, like "Hello world!". PHP String Functions In this chapter we will look at some commonly used functions to manipulate strings. Get The Length of a String The PHP strlen() function returns the length of a string. The example below returns the length of the string...
Php data types
PHP Data Types Variables can store data of different types, and different data types can do different things. PHP supports the following data types: String Integer Float (floating point numbers - also called double) Boolean Array Object NULL Resour
Php echo/print
PHP echo and print Statements echo and print are more or less the same. They are both used to output data to the screen. The differences are small: echo has no return value while print has a return value of 1 so it can be used in expressions. echo can take multiple parameters (although such...