sub print { # print html 1
print "Content-type: text/html\n\n";
print "<HTML><HEAD><TITLE>This is page 1</TITLE></HEAD><BODY BGCOLOR=FFFFFF><CENTER>This is page 1</CENTER></BODY></HTML>";
}
exit;
sub print2 { # print html 2
print "<HTML><HEAD><TITLE>This is page 2</TITLE></HEAD><BODY BGCOLOR=FFFFFF><CENTER>This is page 2</CENTER></BODY></HTML>";
this scripts print out HTML 1 in your browser
and if sub print 2 gets activated it prints this HTML 2 on same page bellow HTML 1 ;-(
why? how can i make it print HTML 2 as new page not below HTML 1.
i used exit;
but that those not help
please advise
thx
the above sa,mple is named
sub print and sub print 2
but the realscript use names like;
sub mail then its prints hmtl 1
and sub go prints html 2
but it prints html 2 at bottom of html1
and iwant itto print html 2 as new page not bellow html 1
i dont think it metter if you name it sub print or sub whatever as long sub is in front of it apache knows its not a print tag like
print"
Apache [httpd.apache.org] does not care nor does it know the slightest thing about Perl [perl.com].
Andreas