When I add 'value="1"' to a checkbox, when the form is submitted the checked value (from POST data) is "1". However, if I don't add 'value="1"' to a check box, the checked value is "on". What's up with that?
Nothing, it's the default value for a checkbox when checked an no "value" is specified.
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
What ever is in the value attribute will be returned in the POST or GET collection if the box is checked, whether it is a "1", "Yes" or "With the hat ON".
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?