Re: popup window under php

From: Date: Fri, 05 Oct 2001 05:21:39 +0000
Subject: Re: popup window under php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-70019@lists.php.net to get a copy of this message
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" <kokubo@inf.univali.br> To: "Naintara Jain" <naintara.jain@in.velocient.com> 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 <naintara.jain@in.velocient.com> To: Eduardo Kokubo <kokubo@inf.univali.br> 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" <kokubo@inf.univali.br> > To: "Maxim Maletsky (PHPBeginner.com)" <php-general@phpbeginner.com> > Cc: <php-general@lists.php.net> > 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) <php-general@phpbeginner.com> > To: 'Eduardo Kokubo' <kokubo@inf.univali.br>; <php-general@lists.php.net> > 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:kokubo@inf.univali.br] > > Sent: mercoledì 3 ottobre 2001 16.31 > > To: php-general@lists.php.net > > Cc: kokubo@inf.univali.br > > 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: 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 > > ----- Original Message ----- From: "Tim Sawyer" <tsawyer@telcom.lgb.cal.boeing.com> To: <php-general@lists.php.net> 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: 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

« previous php.general (#70019) next »