Hi all: I am working with a couple of program that were in a SAMS 24 hour book. They create html forms that are used to enter data and then save the input to a text file another display a list of the created files for selection and viewing using html herf links.
The first program generates a data entry form and, on submit.. creates a text file with standard headers or lables for each field. Although the SAMS book talks about converting the program to be used to edit the text file, it does not explain how to do it. I've been able to create a program that displays a html form listing all the text files that have been created and the url/path to each file. I need help with two things... 1) modify the data entry form to read in the text file it created .. so it can be edited and saved back under the same name. 2) find out how to call the program from a html (href) command line that will open a selected file. I think it would be something like... (a href="http:/www.mysite/cgi-perl/editform.cgi -???- myfile.txt) The ??? is what I'm looking for. Here is a sample of a text file it creates: The data entry form program outputs the field names that label the data in the program and in the text file. <DATE_FILED>Wed Mar 17 15:29:01 2004</DATE_FIELD> <STORY_TITLE>This is the third story for march 17</STORY_TITLE> <BYLINE>Bill</BYLINE> <BODY> And I would like to see how the lines wrap now that I have eight image files in the works <BR> </BODY> Any and all suggestions would be greatly appreciated. Thanks Sav -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>