Gossamer Forum
Home : Products : DBMan : Customization :

Creating html-pages: test this mode

Quote Reply
Creating html-pages: test this mode
Hi DBMan-friends,

what do you think about this mode for creating static pages? it works fine :-)

1. create a sub in html.pl
Code:
sub build_homepage
{
open (HOMEPAGE, ">../../homepages/$in{'ID'}.htm") | | die \"Can't Open template: $!\n";
print HOMEPAGE "<HTML><HEAD><TITLE></TITLE>\n";
print HOMEPAGE "</HEAD><BODY BGCOLOR=\"#FFFFFF\">\n";
print HOMEPAGE "<FONT FACE=\"arial\">$in{'fieldname'}</FONT></TD>\n";
print HOMEPAGE "</BODY></HTML>\n";
close (HOMEPAGE);
}

2. call the sub in the .cgi in the
sub add_record before
&html_add_success;

any suggestions welcome!

PS: suche deutsche "DBMan-Friends"