RWA_RADIO
Example |
Purpose
Defines a radio button. Appends the generated code to a string. Radio buttons operate in a similar way to checkboxes, but only one button in a group can be selected.
Syntax
RWA_RADIO(vString, Name, Value, Checked, aClass)
Parameters
vString A variable containing the string to which the generated code is appended. On return, the variable contains the modified string. If the string does not exist, it is created.
Name Name of the button. All radio buttons in a group have the same name.
Value Value for the button. When the form is submitted, the value returned for a group of radio buttons is the value associated with the selected button.
Checked A operator that determines the initial state of the button (selected or not selected). Only one button in a group can be selected.
aClass A dynamic array that can contain the following elements:
Element No. |
Attribute |
Description |
---|---|---|
1 |
CLASS |
The name of a tag class defined in a stylesheet. |
Attributes defined in the aClass parameter are applied to the INPUT tag.
For information about using aClass, see The aClass Parameter.
Dependencies
Requires a previous call to RW_START_HTML_FORM.