Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Home >> Forms >> <INPUT ...> >> TYPE

TYPE = TEXT

TEXT creates a text entry field (the most popular type of data entry field):

previous page<INPUT TYPE="...">TYPE=CHECKBOX next page
this code produces this
<FORM ACTION="../cgi-bin/mycgi.pl">

name: <INPUT TYPE=TEXT NAME="realname">

<P><INPUT TYPE=SUBMIT VALUE="submit">
</FORM>
name:

TEXT is the default input type (if you want a text field, you don't even need to use the TYPE attribute).

this code produces this
<FORM ACTION="../cgi-bin/mycgi.pl">

<!-- Note absence of TYPE attribute -->
name: <INPUT NAME="realname">

<P><INPUT TYPE=SUBMIT VALUE="submit">
</FORM>
name:

The behavior of TEXT fields can be modified using these attributes:

  • VALUE: set an initial value for the field
  • SIZE: how wide the field should be
  • MAXLENGTH: the maximum number of characters the user can enter

 
 
  Copyright 1997-2002 Idocs inc. Published under the terms of the Open Content License Design by Interspire