On Fri, 17 Mar 2000, Vish Bapat wrote:
> We need to print a ticket on the client PC, when a button is clicked.
> The matter to be printed is generated as HTML on the fly by the PHP
> processor. We studied all material on HTML/PHP but got no clue on this.
> We hate to print thru the print drop down menu of the browser thru file
> menu.
You have to get one concept clear. PHP is server side. Whatever PHP does
is done on the server. PHP *cannot* do anything on the client.
If you want to do something on the client, then use javascript.
This of course will not work unless the client is javascript enabled.
Furthermore, I do not know if you can use javascript to print a document.
If that were possible, then I could put a javascript on my page that sent
a thousand pages of junk to your printer - not good.
I know what you mean about having to print from the menu. I mean - menus
are for restaurants. :)
Philip
--
Without freedom of choice there is no creativity.
-- Kirk, "The return of the Archons", stardate 3157.4
To subscribe / unsubscribe goto the site www.ilug-bom.org ., click on the mailing list
button and fill the appropriate information
and submit. For any other queries contact the ML maintener