CHeighlund
Programmer
I've been trying to work on a php sheet used to display the output from a database for our company. Everything seems to be going well so far, but I'm running into a rather bizarre problem regarding printing the page, and I'm hoping that someone could help me figure out what I'm doing wrong.
I've got three specific areas of the output page I'm supposed to have: Header block, general information block, detail block. Given that they're the more important ones, I worked on the general info and detail blocks first. And, if they're all that's present in the report, then it'll print fine.
However, when I include the header code [currently, only one sample out of three - I want to get this working first], it does some wonky stuff to apparent printouts in the Firefox Browser. (Appears to work correctly in IE, but we use Firefox for pretty much all browsers here.) I've been testing with a three page long (in the report) data sample .By 'wonky', I mean that the header block is the only thing that prints on the first page, nothing prints on the second page, and then the third page kicks in like there wasn't anything wrong, meaning it prints the real third page. Basically, I lose everything but the contents of the header block from the first two pages.
Here's the current code for the header block. Does anyone see anything with it that should be causing Firefox problems?
I've got three specific areas of the output page I'm supposed to have: Header block, general information block, detail block. Given that they're the more important ones, I worked on the general info and detail blocks first. And, if they're all that's present in the report, then it'll print fine.
However, when I include the header code [currently, only one sample out of three - I want to get this working first], it does some wonky stuff to apparent printouts in the Firefox Browser. (Appears to work correctly in IE, but we use Firefox for pretty much all browsers here.) I've been testing with a three page long (in the report) data sample .By 'wonky', I mean that the header block is the only thing that prints on the first page, nothing prints on the second page, and then the third page kicks in like there wasn't anything wrong, meaning it prints the real third page. Basically, I lose everything but the contents of the header block from the first two pages.
Here's the current code for the header block. Does anyone see anything with it that should be causing Firefox problems?
Code:
if ($form_type == 'NFHE')
{
//Heading Block for form type NFHE
echo "<TABLE BORDER=0 RULES=0 GROUPS WIDTH=100%><CAPTION><B><FONT SIZE=+1>$caption</FONT></B></CAPTION>\n";
echo "<TBODY align=center>\n";
echo "<TR><TH align=center><h1>*******************</h1></TH></TR>\n";
echo "<TD align=center>Non-Food Handling Establishments QA Report</TD></TR>\n";
echo "<TR><TD align=center><small>Churches, Offices, Department Stores, etc.</small></TD></TR>\n";
echo "</TBODY></TABLE>\n";
}