[PHP] Can PHP do what this javascript does...

2001-10-24 Thread chip . wiegand
iTo 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.'); } bClick here/b/a ior/i Select bFile/b and then bPrint/b from your browser's menu. Is there an

Re: [PHP] Can PHP do what this javascript does...

2001-10-24 Thread Duncan Hill
On Wed, 24 Oct 2001 [EMAIL PROTECTED] wrote: iTo 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.'); } bClick here/b/a ior/i Select bFile/b and then

Re: [PHP] Can PHP do what this javascript does...

2001-10-24 Thread Richard S. Crawford
Unfortunately, since PHP lives on the server and JavaScript lives on the browser, there really is no way to get PHP to do what you want. Stick with JavaScript. There's really no reason not to when you're doing client-side programming. At 11:14 AM 10/24/2001, [EMAIL PROTECTED] wrote: iTo

Re: [PHP] Can PHP do what this javascript does...

2001-10-24 Thread Mike Frazer
Javascript can be embedded in PHP files anyway. I do a lot of database management interfaces in PHP and one thing I want to do is protect items from being accidentally deleted. I use Javascript to verify that they intended to click on the link to delete the information. Remember, PHP files are

Re: [PHP] Can PHP do what this javascript does...

2001-10-24 Thread Mike Eheler
There's a really long method of doing it that would work, but would involve server-side browser detection, and a database containing a list of browsers that support print shortcuts. Stick with the JS. Mike [EMAIL PROTECTED] wrote: iTo print/i: a href=javascript:if (window.print != null) {

Re: [PHP] Can PHP do what this javascript does...

2001-10-24 Thread chip . wiegand
[EMAIL PROTECTED] on 10/24/2001 10:31:30 PM Internet mail from: To: [EMAIL PROTECTED] cc: [EMAIL PROTECTED] Subject: Re: [PHP] Can PHP do what this javascript does... There's a really long method of doing it that would work, but would involve server-side browser detection, and a database