Re: Can PHP do what this javascript does...
| From: | Mike Frazer | Date: | Wed, 24 Oct 2001 19:09:20 +0000 |
| Subject: | Re: Can PHP do what this javascript does... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-72145@lists.php.net to get a copy of this message | ||
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 enhanced HTML files, which means the browser will
parse them exactly the same as a standard HTML file.
Mike Frazer
"Richard S. Crawford" <rscrawford@mossroot.com> wrote in message
news:5.1.0.14.0.20011024112241.02d7fc58@pop3.norton.antivirus...
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, 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?
>
>--
>Chip Wiegand
>Computer Services
>www.simradusa.com
>chip.wiegand@simrad.com
>Simrad, Inc
>Lynnwood, WA
>425-712-1138
>
>"There is no reason anyone would want a computer in their home."
> --Ken Olson, president, chairman and founder of Digital Equipment Corp.,
>1977
> (-- Then why do I have nine? Somebody help me!)
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>For additional commands, e-mail: php-general-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
Sliante,
Richard S. Crawford
http://www.mossroot.com
mailto:rscrawford@mossroot.com
AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford
"It is only with the heart that we see rightly; what is essential is
invisible to the eye." --Antoine de Saint Exupéry
"Push the button, Max!"