How do I populate form data from a data file when a page is loaded

I browsed around a little to try to find an answer to this but had no luck. I'm creating a page containing text input data that I would like to populate with data read in from a file when the page is loaded. For example:

NAME1:
ADDRESS1:

NAME2:
ADDRESS2:

I have a Perl script that reads and processes the data file but how do I get that data back to the form so that I can update the text boxes?

I was trying to play around a little more to try to get it to work. In the following snippet, I execute a perl script when the page is loaded (the syntax is based on an example I found on the web). One problem I'm running into with this though is that it doesn't seem to return from the Perl script (I never see the "Hello this is the main page" message). I did confirm that my Perl script runs because it prints out its result.

Thanks, I'll give this a try when I get off work. One question though - where does this fit in in the example I showed? Does this replace the "tourntest.pl" PERL script that is called when the page is loaded or is this called and executed in some other way altogether?

This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…

Learn the basics of strings in Python: declaration, operations, indices, and slicing.
Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…