Posted by Jaz on 1998-02-15
Is there anyone who could write me such a program in Perl: I have a form in a HTML file, consisting off three one-line textboxes. The "submit" action points to the perl program. The Perl program should save the text in the text boxes in a data file, together with the current GMT/UTC time (you can also just use the normal time from the server and add or substract the delay from the server's location to the "+/- 0 hours" time zone. The content of the three one-line textboxes and the date should be saved into a data file. The data files also contains previously saved textboxes and time strings. If there are more than 30 entries, the script should delete the oldest ones, so the maximum number of entries always stays at 30. Now the script should new re-write a file (for example "mypage.html") and then 1) write the content of a file "header.html" to "mypage.html" 2) write the entries in the data file like 1st textbox1<br> 2nd textbox1<br> 3rd textbox1<br> time1<br> 1st textbox2<br> 2nd textbox2<br> 3rd textbox2<br> time1<br> [...] 3) ... and the content of a file "footer.html", then "mypage.html" should be closed. The target system for the program is a virtual server with all actual versions of Perl, CGI and SSI access. Jaz --- luna.kil@xxxxxxx.xxx === member of the Coder's Guild: --- http://www.paracatz.com/codersguild/
Previous post | Next post | Timeline | Home