Next / Previous / Contents / TCC Help System / NM Tech homepage

14.9. What makes a control successful?

When the user clicks on the Submit button of a form, name/value pairs are sent to the handler script for each successful control.

Here are the rules that define when a control is considered successful.

  1. If a control is disabled, it cannot be successful.

  2. Checkboxes that are set (on) are successful. Unset (off) checkboxes are not successful.

  3. For a group of radiobuttons that have the same control name, only the one that is currently set is successful.

    If you don't specify which of the radiobuttons in a group is initially set by default (with checked='checked'), the result is undefined. When you create a form with radiobuttons, always designate a default radiobutton.

  4. For a select element, only the choice that is selected is considered successful.