--- "Moon, John" <[EMAIL PROTECTED]> wrote:
> Could someone please suggest a "simpler" way to generate this table ...
 [snip]

Without going into the usual "use CGI.pm's HTML shortcuts" argument, I'd say they are 
cleaner,
once you get used to them. The following only took me a couple of minutes to create:

print $q->table( 
        $q->Tr(
          $q->td( { -align => "right" }, 
                  'Customer Id' . $q->strong( ':' )
              ),
          $q->td( { -align => "left" },
            $q->textfield( -name      => 'NEWCUST_ID', 
                           -default   => $cust_id,
                           -size      => 10,
                           -maxlength => 10
            ),
          ),
        ),
        $q->Tr(
          $q->td( { -align => "right" },
                  'Account' . $q->strong( ':' )
          ),
          $q->td( { -align => "left" },
            $q->textfield( -name      => 'NEWACCT', 
                           -default   => $acct,
                           -size      => 15,
                           -maxlength => 15
            ),
          ),
        ),
        $q->Tr(
          $q->td( { -align => "right" },
                  'Title' . $q->strong( ':' )
          ),
          $q->td( { -align => "left" },
            $q->textfield( -name      => 'NEWTITLE', 
                           -default   => $title,
                           -size      => 50,
                           -maxlength => 100)
            ),
          ),
        );

If you don't like them, you can always go with a HERE document.

Cheers,
Curtis Poe

=====
Senior Programmer
Onsite! Technology (http://www.onsitetech.com/)
"Ovid" on http://www.perlmonks.org/

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Reply via email to