in reply to Re: Passing scalars to CGI module
in thread Passing scalars to CGI module
Thus to create a table of just 'last' and 'first', I could reference the correct element of the hash and retreive the correct column name, the default width, and the cgi param to pass in order to create the correct form element. Additionally, if I'm generating a report, all I would need to pull is the column name and size, etc.%sample = ( 'login' =>["Login", 75, qq|textfield('login')|], 'last' =>["Last Name", 75, qq|textfield('last')|], 'first' =>["First Name", 70, qq|textfield('first')|], 'address' =>["Address", 140, qq|textarea('address','',2,40)|] );
I could replace the qq|textfield('xxxx')| with $q->textfield('xxx'), which does work, however, I don't want to generate all those cgi params unless they are needed.
--
Filmo the Klown
|
|---|