![]() |
| > Home > Documentation > Latest documentation > Interchange tags > checked |
|
checkedThis tag provides a "memory" for HTML radio buttons and checkboxes. Summary
ExampleTag expansion example
DescriptionThis tag provides a "memory" for HTML radio buttons and checkboxes. The similar [selected] tag does the same, but for the HTML <select> tag.
This will output "checked="checked"" if the "foo" value is equal to the specified value parameter. The match will not be not case sensitive unless the optional case=1 parameter is used. Note that checkbox items will never submit their value if not checked, so the box will not be reset To work around this behaviour, you must do something like this:
Use the default parameter to specify that this checkbox should be marked "checked" if the named value variable is not set at all. ParametersnameThe name of the CGI/value. valueThe value to test against. defaultSpecify that this checkbox should be marked as "checked" if the named value is not set at all. delimiterOverrides the default ASCII NUL character, used to separate stacked values when operating in multiple mode. caseSet to a true value to perform case-sensitive matches. cgiBy default, the $Values space (i.e. [value foo]) is selected. Use this parameter if you want to use the volatile $CGI space (i.e. [cgi foo]). multipleCheck for multiple (stacked) values, separated by an ASCII NUL character ("\0" in Perl). The default delimiter can be overridden using the delimiter parameter.
|
| Home | Legal nonsense | Privacy policy | Contact us |