I have an HTML form with a pre-built table containing "standard"
column headings (for example, First Name, Last Name, SSN, Hours,
etc.). I want a user to be able to enter values into the form and then
submit it. The data will be emailed to an administrator who will then
print the month's report. I also plan to extract the data and store it
in an external flat text file so that there is an electronic backup
version.
The user would complete this form monthly, but may have reason to view
a prior month's form. So I'd like to offer an Import button on the
form that, when clicked, would retrieve the flat text file data and
display it in the pre-built table (obviously I'd have to provide some
mechanism for the user to identify which month's file they want to
view as well). Anyone aware of examples of this or have any ideas on
how to implement this?
Seems like there would have to be a way to extract the data from the
form, then write it to a file (using tab or pipe delimiters to
separate the columns), as well as a way to search for a particular
month's file, then read that file and display the data in the HTML
form (with the first name data in the First Name column, the last name
data in the Last Name column, etc.). Sounds do-able, but I'm not sure
how.
TIA,
Yellowbird