Thursday, July 10, 2008

Forms - Text Entry Controls

<input type="text" name="somename" size="15" maxlength="20" />
The above line of code specifies a single-line text input box of width 15 characters (approximately) that accepts a maximum of 20 characters. The name of the submitted text is "somename".
The default value in the text box can be specified using the value attribute (eg. value="first name only")

No comments: