Hi,
I am trying to insert stuff into the middle of an existing page but it is not working, the code is below....any help is appreciated.
open(FILE4,">>$basepath/$basedir/databoard.dat") | | die $!;
foreach $line (@lines) {
if ($line =~ /<!-- $FORM{'rnumber'} -->/) {
print FILE4 "<!-- $FORM{'rnumber'} -->\n";
print FILE4 "<ul><li>\n";
print FILE4 "<b><a href=\"$URL/$baseindex/$messages/$count.$pages\">$FORM{'nsubject'}</a></b>";
if ($newmessage eq "0") {
print FILE4 "(n/t)";
}
print FILE4 " - $months[$mon] $daym, $year\n";
print FILE4 "<!-- $count -->\n";
print FILE4 "</ul>\n";
}
}
CLOSE(FILE4);
Brett
I am trying to insert stuff into the middle of an existing page but it is not working, the code is below....any help is appreciated.
open(FILE4,">>$basepath/$basedir/databoard.dat") | | die $!;
foreach $line (@lines) {
if ($line =~ /<!-- $FORM{'rnumber'} -->/) {
print FILE4 "<!-- $FORM{'rnumber'} -->\n";
print FILE4 "<ul><li>\n";
print FILE4 "<b><a href=\"$URL/$baseindex/$messages/$count.$pages\">$FORM{'nsubject'}</a></b>";
if ($newmessage eq "0") {
print FILE4 "(n/t)";
}
print FILE4 " - $months[$mon] $daym, $year\n";
print FILE4 "<!-- $count -->\n";
print FILE4 "</ul>\n";
}
}
CLOSE(FILE4);
Brett