Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
delete/over-write record in FlatFileby lakeTrout (Scribe) |
on Mar 25, 2008 at 20:45 UTC ( [id://676235]=perlquestion: print w/replies, xml ) | Need Help?? |
lakeTrout has asked for the wisdom of the Perl Monks concerning the following question:
Hi Folks, I looked around and couldn't quite find a solution that fits my problem. I have an archaic script that needs some updating (no budget to bring it up to spec and the way it should be!). Anyway, I have a script to write to a log file and another one to display the logfile in a nice HTML table. Problem: They now wish to EDIT records in this flatfile from the HTML output page and I'm stuck. There is no admin support and I can't add any mods, so this is old school. GOAL: I want to open the form I got the data from in the first page to launch pre-populated with the record the user clicks on (say the click "edit record 5", then the form would open pre-populated with the variables from the 6th entry in the flatfile; per n-1). From here, the user could "edit" the form and re-submit it as a new record. Hopefully this snippet will give an idea:
Can anyone help me? I not a terribly strong coder, so bare with me. Thank you all! lakeTrout
Back to
Seekers of Perl Wisdom
|
|