RE: [PHP] Re: something like alert (javascript)

From: Date: Wed, 03 Oct 2001 18:07:19 +0000
Subject: RE: [PHP] Re: something like alert (javascript)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-69805@lists.php.net to get a copy of this message
Here is something that I finished the other day that does what you need <script language="JavaScript"> function MyForm_onsubmit() { bSuccess = true; if(MyForm.action[0].checked) { var x=window.confirm("Message to be displayed here") if (x) bSuccess = true; else bSuccess = false; } return bSuccess; } </script> <form name=MyForm method="post" action="<? Echo $PHP_SELF; ?>" language=javascript onsubmit="return MyForm_onsubmit()"> Put form stuff in here <input type="submit" value="Click here"> Hope this helps Thank You Brian Paulson Sr. Web Developer The Pueblo Chieftain Online bpaulson@chieftain.com http://www.chieftain.com > -----Original Message----- > From: John Lim [mailto:jlim@natsoft.com.my] > Sent: Wednesday, October 03, 2001 11:50 AM > To: php-general@lists.php.net > Subject: [PHP] Re: something like alert (javascript) > > > Try LensDebug. Generates messages in a second window from PHP. > > http://phplens.com/lens/free_code/lensdebug.php > > "Eduardo Kokubo" <kokubo@inf.univali.br> wrote in message news:001801c14c18$07d4d7c0$a102a8c0@cttmar... 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

« previous php.general (#69805) next »