You have the same requirement

Put this wherever you want in your script.

<?php
 if (true)  // whatever the condition
 {
     echo "<script language=JavaScript>
        alert('Message!') </script>";
 }
 ?>


----- Original Message -----
From: "Eduardo Kokubo" <[EMAIL PROTECTED]>
To: "Naintara Jain" <[EMAIL PROTECTED]>
Sent: Thursday, October 04, 2001 4:56 PM
Subject: Re: [PHP] something like alert (javascript)


This is probably the best solution. I'll try something like this. Thanks.

----- Original Message -----
From: Naintara Jain <[EMAIL PROTECTED]>
To: Eduardo Kokubo <[EMAIL PROTECTED]>
Sent: Thursday, October 04, 2001 8:19 AM
Subject: Re: [PHP] something like alert (javascript)


> You could try:
> <?php
> if (files < 4)  // whatever the condition
> {
>     echo "<script language=JavaScript>
>        alert('Unfinished business!') </script>";
> }
> ?>
> -Naintara
>
> ----- Original Message -----
> From: "Eduardo Kokubo" <[EMAIL PROTECTED]>
> To: "Maxim Maletsky (PHPBeginner.com)" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Thursday, October 04, 2001 4:45 PM
> Subject: Re: [PHP] something like alert (javascript)
>
>
> I'm implementing a system that allows the users create pages on-line. They
> can create several different pages to complete a site. What I want to do
is
> alert them that there are still pages to be created before they finish.
I'm
> trying to do it checking the files they create and alerting a message, but
I
> think javascript can not check the files and php can not alert the user
with
> a function like alert(). I'm using a simple print() (PHP) but alert()
would
> be much better.
>
> ----- Original Message -----
> From: Maxim Maletsky (PHPBeginner.com) <[EMAIL PROTECTED]>
> To: 'Eduardo Kokubo' <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Wednesday, October 03, 2001 11:38 AM
> Subject: RE: [PHP] something like alert (javascript)
>
>
> > Then what do you need?
> >
> > We are not any sure on what your question is ...
> >
> > Maxim Maletsky
> > www.PHPBeginner.com
> >
> >
> > -----Original Message-----
> > From: Eduardo Kokubo [mailto:[EMAIL PROTECTED]]
> > Sent: mercoledý 3 ottobre 2001 16.31
> > To: [EMAIL PROTECTED]
> > Cc: [EMAIL PROTECTED]
> > Subject: [PHP] something like alert (javascript)
> >
> >
> > Is there any function in PHP that is similar to alert() or confirm() of
> > javascript ? I tried die() but that's not what I need.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


----- Original Message -----
From: "Tim Sawyer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 05, 2001 12:46 AM
Subject: [PHP] popup window under php


I want to open a popup window under php control. So lets say I have an
if statement which if true opens the window.

if ($something) {
    JavaScript:window.open("test.php",blah...);
}

Guess I'm saying that I want to call a Javascript function without the
user clicking on anything.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to