Hi,
I will describe my problem first, and then a solution that i have in mind. pls let me know i) if my solution is viable at all ii) and comments/suggestions on other types of solutions.
PROBLEM: I need to make a stand alone CD(web independent). The CD has a bunch of HTML documents in it that will primarily be used for printing by the people who will be receiving the CD. The content on the documents is the same for everybody. But each person who gets a CD wants to have their name, address, phone #, and a couple of other lines of personal information populated on top of each document when they are printing it out. Now, there are around a hundred of these forms, and this information should by dynamic in the sense that they could change it later in they wanted to, and it should still appear on the forms.
MY SOLUTION: This is the solution I had in mind. I would have an 'options' window which would display an HTML form, that would collect all the information that needs to be put on each of the documents. If there is some way in which I could write out this information into an XML file, and store it there on the users computer. (Assume that all the contents of the CD will be on the hard drive, and the CD wont be needed everytime to use any of the features, however utilizing the Internet is NOT an option).
After that I thought I would make a template which for its header would query the XML file created in earlier step and retrieve information from there to be put on each document, so it would be prepopulated
So my questions being:
i) How do I write a HTML form that would send the data to a file, without using CGI or anything like that which would be server dependent.
ii) How do I write code in my HTML form that would read tags from a certain XML file with a particular filename in a particular directory?
If you have a better suggestion to tackle the problem, feel free to comment on that. I have any such 'ego' that would forbid me from accepting that I am completely wrong!