• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

10. Dynamic Form Controls > 10.2. Basic Input Controls

Basic Input Controls

The cfinput tag closely resembles the HTML input tag and can be used for creating text boxes, password entry boxes, radio buttons, and checkboxes. At the most basic level, the cfinput tag behaves exactly like the HTML input tag. Consider the following HTML input tags:

<input type="text" name="MyText" size="10" maxlength="10" value="MyValue">
<input type="password" name="MyPassword" size="10" maxlength="10">
<input type="radio" name="MyRadioButton" value="MyValue" checked>
<input type="checkbox" name="MyCheckbox" value="MyValue" checked>

Here are the equivalent cfinput tags:

<cfinput type="text" name="MyText" size="10" maxlength="10" value="MyValue">
<cfinput type="password" name="MyPassword" size="10" maxlength="10">
<cfinput type="radio" name="MyRadioButton" value="MyValue" checked>
<cfinput type="checkbox" name="MyCheckbox" value="MyValue" checked>

PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint