Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8019353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:21:54+00:00 2026-06-04T21:21:54+00:00

This is a two-column table with a label in the left-hand column and form

  • 0

This is a two-column table with a label in the left-hand column and form elements in the right-hand column. I am trying to get the radio buttons for the chair color all in the second column. But they keep ending up in the first column.

Here is the relevant piece of code:

use HTML::Template;
use CGI qw(:standard);

my $form = '';

$form .= start_form .
  table ({-width=>'100%'},
    Tr([
      td (b ('Chair color:')),
        td (radio_group(-name => 'certificate_type',
                        -values=>['blue','white','green'],)),
      td ([b ('Username:'),  $ENV{REMOTE_USER}]),
      td ([b ('Full name:'), $PARAMS{CURRENT_FULLNAME}]),
      td ([b ('Email:'),     $PARAMS{EMAIL}]),
   ])) . submit('Submit') . reset . end_form;

(Even better would be to get the buttons in the second column but stacked vertically.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T21:21:56+00:00Added an answer on June 4, 2026 at 9:21 pm

    I presume you want “Chair colour” in the first column, to the left of the three radio buttons in the second column?

    The problem is that you have put “Chair Colour” and radio_group in two separate td elements, so they will appear on separate rows.

    You need to pass them together, enclosed in an anonymous array, to a single td call, as you have the last three rows.

    Also, a parameter of -columns => 1 to the radio_group will force them into a single column.

    This code seems to do what you need.

    my $form =
        start_form
      . table( {-width=>'100%'},
          Tr([
            td([
              b('Chair color:'),
              radio_group(
                -name => 'certificate_type',
                -values => [ qw/ blue  white  green / ],
                -columns => 1
              )
            ]),
            td([b('Username:'),  'remote user']),
            td([b('Full name:'), 'current fullname']),
            td([b('Email:'),     'email']),
          ])
        )
      . submit('Submit')
      . reset
      . end_form;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Right now I have this code which enumerates to a singe column table all
I have a table based layout, with one main two-column table, for left and
I have (simplified for this question) a table 'TAB' with two columns 'id' (integer
I have a table with two columns, like this: Firstname: Jeff Where the first
This should be a layup for someone... I'm trying to change a form field's
I have two column in my mysql table A and B and I am
I want to make a two column layout using DIVs, where right column will
I have a two column table with a primary key (int) and a unique
If one uses float:left to layout two columns, does the left column have to
We have a table with two columns: in each row there is a label

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.