in reply to CGI.pm single radio button

You seem to be looking for radio_group()

But usually radio buttons are used to select exactly one out of a few alternatives, which makes no sense if you only have one alternative. If you are looking for an on/off-selection, checkbox() is better. There is also a visual difference and you probably will (slightly) confuse users of your webpage if you use a single radio button for an on/off-selection.

Replies are listed 'Best First'.
Re^2: CGI.pm single radio button
by kosta (Sexton) on Mar 30, 2011 at 13:07 UTC
    I have a few alternatives I just need to create them separately since the name and value are dynamically assigned from db
      You can always collect the data in an array so that you later can create the radio group together