Posted by Chuck Anderson on 07/13/06 20:34
monomaniac21 wrote:
> hi i want to be able to trigger a javascript style popup alert in php
> (i want a message displayed on the actual page) is this possible?
>
>
I'll take this one ... all I usually do here is ask questions.
The answer to your question is No. Php is run on the *server before* the
page is displayed. Therefore, Php cannot popup an alert like JavaScript
(which runs on the *client computer after* the page is loaded).
That said; if you want to implement a two step procedure like
(1) Delete this file.
(2) Are you Sure (Y or N)?
You can do that with Php, but clicking on (1) must create a request to
the server to display a new page with (2) as a form or hyperlinks.
Clicking on Y or N must return to the server again in able to perform
the action.
--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Everyone's journey should be different,
so that we all are enriched
in new and endless ways
*****************************
[Back to original message]
|