The first part about the date and domain, that is a function of the web
browser. Not really too much you can do I think.
As for the printing without background or tables, etc... you basically need
to code that yourself.
Say you have the "fancy" web page that has all the info. Have a link on the
page that says "printer friendly version". You will need to design a script
that spits out the same "DATA" as the fancy page, but you won't embed it
with tables or colors or anything.
As far as I know, there is no easy way around it. You have to code it.
Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
http://www.rutgersinsurance.com
----- Original Message -----
From: "Jorge Cordero" <jorge@d...>
To: "professional php" <pro_php@p...>
Sent: Wednesday, February 28, 2001 1:35 PM
Subject: [pro_php] Re: How to add a print button to PHP page
> Greetings from Mexico:
> Adam Thanks for your response, what iam trying to do is to print an
invoice
> that a php script generates but every time I push the print button on my
> browser the printer prints a header with the date and the name of the page
> and a footer with the domain.I am new to programming (45Years)and learning
> by books like yours.
> what i mean with friendly print pages is a page that when you send it to
> print doesent print backroung colors table borders etcc.. only the text.
>
> ----- Original Message -----
> From: Adam Lang <aalang@r...>
> To: professional php <pro_php@p...>
> Sent: Wednesday, February 28, 2001 8:22 AM
> Subject: [pro_php] Re: How to add a print button to PHP page
>
>
> > PHP can't do printing for you. PHP is server side... the only thing it
> can
> > print to are printers the webserver is connected to.
> >
> > If you want a print button, you need to use Javascript, but as I ALSO
> > mentioned in the previous post, not al browsers support the print object
> of
> > javascript.
> >
> > As for the friendly print page, I am not sure what you are talking about
> > when saying: "doesnot prints the headers footers and html"
> >
> > If you just want straight tech, just echo stright text to the page and
> have
> > the user print it.
> >
> > Adam Lang
> > Systems Engineer
> > Rutgers Casualty Insurance Company
> > http://www.rutgersinsurance.com