Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

table in a radio group

by bitzy790 (Novice)
on Jul 22, 2005 at 20:20 UTC ( #477341=perlquestion: print w/replies, xml ) Need Help??

bitzy790 has asked for the wisdom of the Perl Monks concerning the following question:

Hi! I have 10 fields in a row of country data. Then I have 20 rows of countries. Is there any way to display the country data in a table, but have each selectable by a radio button? It will be a pain to use hotlinks due to the amount of data hidden in the form. I would like the columns to display under a header. Thanks!

Replies are listed 'Best First'.
Re: table in a radio group
by CountZero (Bishop) on Jul 22, 2005 at 21:24 UTC
    Your question is not clear: do you want one radio button for each country (i.e. one radio-button per row), or one radio button per field (i.e. 10 radio buttons per row).

    Both are possible.

    Shall we assume (for the sake of bringing your question at least within the scope of Perl Monks) that you wish to set up this structure automatically through a Perl-script? Or do you use a templating-system?

    CountZero

    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

      Sorry I was not clear. I would like one radio button for each country - one button per row. The goal is to be able to select one country for updating, and have the data populate on a maintenance screen. For the one country, the user can update multiple fields for the one country with one transaction.I would like to set this up thru perl using cgi.pm. I don't use a templating system.
        Ok, now that that's clear, what have you tried? Perhaps start by generating the HTML table through perl. Hint a loop nested in another loop, the outer for the rows, and the inner for the cells within the rows. Then start worrying about the content of each cell.
Re: table in a radio group
by polettix (Vicar) on Jul 22, 2005 at 20:58 UTC
    Your node has been considered for deletion prior the approval. While I don't second the idea that this is not a question even remotely related to Perl (and this is why I approved it), you should at least show some effort instead of waiting for the supper.

    Flavio
    perl -ple'$_=reverse' <<<ti.xittelop@oivalf

    Don't fool yourself.
Re: table in a radio group
by bageler (Hermit) on Jul 23, 2005 at 01:02 UTC
    try an html/javascript/DOM forum.
      Thanks for everyone's help. I ended up using a hotlink for each line instead of using radio buttons as a means of choosing a line to change.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://477341]
Approved by polettix
Front-paged by tye
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2022-11-30 21:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?