
rainbowz
Deleted
Jun 5, 2001, 6:38 PM
Post #3 of 5
(472 views)
|
|
Re: Why is this text, not html?
[In reply to]
|
Can't Post
|
|
Randor, Thanks for the input. However, the header tags are all in there, part of the &header file that it correctly grabs at the begining of the html section:
print "Content-type: text/html\n\n"; &header; print<<EOF; <CENTER><BR> <TABLE BORDER="0" WIDTH="400"> <TR> <TD><CENTER><BR> etc., etc.. Here's a copy of the actual page it gives out - both the page's source code and the web page itself show exactly the same thing, so it's not picking up that "print "Content-type: text/html\n\n"; " instruction... it's a white page with plain black text, not the black BG and white text the BODY tag calls for.
<HTML><HEAD><TITLE>Free Page request</TITLE></HEAD> <BODY BGCOLOR="#000000" TEXT="#FFFFFF" LINK="#FFFFCC" ALINK="#FF3366" VLINK="#FFFFCC"> <center> <table border="0" cellspacing="0" cellpadding="0" width=500> <tr> <td align=center vaign=top colspan=3> <img src="FP_450_logo.jpg" width=450 height=62 border=0> <CENTER><BR> <TABLE BORDER="0" WIDTH="400"> <TR> <TD><CENTER><BR> <p><FONT FACE="arial, helvetica,verdana"> <FONT COLOR="#FFCC33"><B>FREE PAGE Submission</B></FONT> <font size="5" color="#FF6666"><b>Status: SUCCESS!</font></FONT></B></P> <P><FONT SIZE="2" FACE="arial, helvetica, verdana"> Your account information has been sent in. Please check your e-mail for further info. Thank you for your submission.</FONT></P> <P><FONT SIZE="1" FACE="arial, helvetica,verdana"> Contact <A HREF="mailto:newpages@rainbowzone.com">the admin</A> if you need any further assistance.</FONT></P> <HR SIZE="1"> </CENTER> </TD></TR></TABLE></CENTER> </BODY></HTML> As you can see above, the resulting page includes the header's img tag, so that's coming in OK. Here's another sub that works just fine, header info and all, for comparison:
sub sorder { unless ($INPUT{'agree'}) { print "Content-type: text/html\n\n"; &header; print<<EOF; <CENTER><BR> <TABLE BORDER="0" WIDTH="400"> <TR> <TD> <CENTER><BR> <p><FONT FACE="arial, helvetica,verdana"> <FONT COLOR="#FFCC33"><B>FREE PAGE Submission</B></FONT> <font size="5" color="#FF6666"><b>Status:You Must Agree.</FONT></B></P> <P><FONT size=2 FACE="arial, helvetica, verdana"> In order for us to process your request, you must check the box marked <B>"I agree to the Terms"</B> on our order form.</FONT></P> <P><FONT SIZE="1" FACE="arial, helvetica,verdana"> Contact <A HREF="mailto:$orgmail">$orgname</A> if you need any further assistance.</FONT></P> <HR SIZE="1"> </CENTER> </TD></TR></TABLE></CENTER> EOF &footer; exit; } What's the difference with these two when it comes to picking up that content line? The content of the source code is exactly what it should be it's just not pumping it out as html on the web page.
|