ObiwanJebroni
07-03-2002, 01:25 PM
I'm using some PERL script to write some data about a user who uses my website. The script is supposed to write the data about the user to a file after retrieving some form data and then getting a few other tidbits of information as well.
Here's my code for what I THINK should do the trick (even though it doesn't). The text file isn't expected to do anything but sit there for the administrator to view at his leisure.
$currenttime = localtime;
$record = "c:/abyss/htdocs/logs/dl-log.txt";
open(DLRECORD, "<< $record");
print DLRECORD "$currenttime \n";
print DLRECORD " ==================================================
===============================\n";
print DLRECORD "User $FORM{last_name}, $FORM{first_name} requested download. Information given includes:\n";
print DLRECORD "ADDRESS: $FORM{address}\n";
print DLRECORD "CITY, STATE ZIP:$FORM{city}, $FORM{state} $FORM{zip}\n\n";
print DLRECORD "EMAIL: $FORM{email}\n";
print DLRECORD " ==================================================
===============================\n\n";
close (DLRECORD);
Please ignore some of the line-breaks. Semicolons end each line.
Here's my code for what I THINK should do the trick (even though it doesn't). The text file isn't expected to do anything but sit there for the administrator to view at his leisure.
$currenttime = localtime;
$record = "c:/abyss/htdocs/logs/dl-log.txt";
open(DLRECORD, "<< $record");
print DLRECORD "$currenttime \n";
print DLRECORD " ==================================================
===============================\n";
print DLRECORD "User $FORM{last_name}, $FORM{first_name} requested download. Information given includes:\n";
print DLRECORD "ADDRESS: $FORM{address}\n";
print DLRECORD "CITY, STATE ZIP:$FORM{city}, $FORM{state} $FORM{zip}\n\n";
print DLRECORD "EMAIL: $FORM{email}\n";
print DLRECORD " ==================================================
===============================\n\n";
close (DLRECORD);
Please ignore some of the line-breaks. Semicolons end each line.