Results 1 to 2 of 2

Thread: Populating a table in HTML

  1. #1
    Join Date
    Oct 2003

    Question Populating a table in HTML

    How can I use Perl to open a file and use its contents populate a table in HTML? For example, when the submit button in a HTML form is clicked, it'll activate the 'populate.cgi' script to open a file and use its contents to populate a table (eg. names for its rows and occupation for its columnx) of a newly created HTML page.

  2. #2
    Join Date
    Jul 2003
    Lansdale, PA
    Well, there's no magic way to do this. You basically have the perl script open the "data file" and read it's contents. As you read each line, you print out the resulting line of HTML code. When you are done, you have a full HTML page, either printed out to the screen (sent back to the user) or printed to a flat file (for viewing on your site).

    That's the basic overview of one way to do it, anyway. Hope it helps.


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center