开发者

Best practice for radio buttons associated with several input fields

What is the best practice for radio buttons that should be associated with several input fields?

The two solutions I've seen are to use JavaScript to make sure only the intended information is submitted or implement conditional logic on the server side that ignores or uses the input values that are submitted every time.

Personally I like this logic on the client side, but if your implementation requires non-JavaScript, this is impossible (isn't it?).

Also, solving this problem server side instead of client side seems more robust against running into an error due to an incorrect value being submitted. I just don't like it because it's additional logic that server side shouldn't have to worry about...

Or is there a overall be开发者_JS百科tter solution to the problem at hand besides using radio buttons associated with several input fields?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜