Loading ...
Sorry, an error occurred while loading the content.
 

Re: [PBML] packages for html code

Expand Messages
  • merlyn@stonehenge.com
    ... Thiago I want to generate a HTML code using the package Thiago CGI.pm or HTML::EasyTags. Thiago But, my problem is following: I need to create a table
    Message 1 of 2 , Mar 6, 2006
      >>>>> "Thiago" == Thiago Nacimento Rodrigues <nascimentothiago@...> writes:

      Thiago> I want to generate a HTML code using the package
      Thiago> CGI.pm or HTML::EasyTags.
      Thiago> But, my problem is following: I need to create a table
      Thiago> whose rows are gotten
      Thiago> from the database. For this, I need of a loop for to
      Thiago> cover the lines of the
      Thiago> database. How can I to execute the following sequence
      Thiago> of the actions:

      Thiago> 1. to begin the table outside of the loop;
      Thiago> 2. to insert the lines in the table (inside of the
      Thiago> loop)
      Thiago> 3. outside of the loop, to finish the construction of
      Thiago> the table?

      With CGI.pm, look at SPECIAL FORMS FOR IMPORTING HTML-TAG FUNCTIONS about
      creating start_table and end_table during the import.

      But if you're doing anything mildly complicated, perhaps you should
      look at a true templating solution, like HTML::Template or Template
      Toolkit.

      --
      Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
      <merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
      Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
      See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
    Your message has been successfully submitted and would be delivered to recipients shortly.