Re: Can PHP do what this javascript does...
| From: | Duncan Hill | Date: | Wed, 24 Oct 2001 18:19:55 +0000 |
| Subject: | Re: Can PHP do what this javascript does... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-72137@lists.php.net to get a copy of this message | ||
On Wed, 24 Oct 2001 chip.wiegand@simrad.com wrote:
> <i>To print</i>: <a href="javascript:if (window.print != null) {
> window.print(); }
> else { alert('Unfortunately, your browser does not support this shortcut.
> Please select Print from the File menu.'); }">
> <b>Click here</b></a> <i>or</i> Select <b>File</b>
> and then <b>Print</b> from your browser's menu.
>
> Is there an equivelant bit of code to do this printer shortcut with
> php?
PHP - _server_ side
Javascript - _client_ side
PHP cannot affect your client like Javascript can.
--
Sapere aude
My mind not only wanders, it sometimes leaves completely.