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

Hi,

I need some help using CGI::FormBuilder. I didn't understand how I can make the following happen:

I want a page that displays a table containing some database entries. Anywhere on this page there should be also a possibility to select some of the table fields in order to process them further.

So I will write a template that has a table and a form on it. But how can I tell Formbuilder to also fill in the table that will be no form? Or can I do this table to be somehow the form? You see I am a bit confused. Is there a possibility or am I just blind and haven't found the point where it is stated how to do it.

Thank you very much

Replies are listed 'Best First'.
Re: CGI::FormBuilder and tables
by stiller (Friar) on Feb 25, 2008 at 11:59 UTC
    You might have an (html) id on each "row" from the database, and some way for the user to select a row to edit (e.g. onclick), a javascript pulls the cells from the table and puts them into the form elements that also have id's. With css visibility you can even hide the form until it's needed.
    hth
    Edit: I forgot to address your question about telling formbuilder about this, -you don't need to do that, just provide the hooks (id's)
Re: CGI::FormBuilder and tables
by Khen1950fx (Canon) on Feb 25, 2008 at 22:59 UTC