Re: Re: MessageBox in PHP?

From: Date: Mon, 22 Oct 2001 17:06:55 +0000
Subject: Re: Re: MessageBox in PHP?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-71848@lists.php.net to get a copy of this message
Or shorten your code: put the Javascript into a separate file, then use if ($err) { include("/javascript/file/path/here"); } Use it over and over again via this method. "Fatih Ustundag" <fatih@yore.com.tr> wrote in message news:NEBBKJOEILFNKPEPIGFOOEIOEIAA.fatih@yore.com.tr... > But you can write javascript code with php > like this: > > if ($err) > { > echo "<html><body>" > echo "<script>\n"; > echo "alert('ERRORR');\n"; > echo "</script>\n"; > echo "</body></html>\n"; > exit(); > } > > -----Original Message----- > From: _lallous [mailto:elias_bachaalany@yahoo.com] > Sent: Monday, October 22, 2001 3:20 PM > To: php-general@lists.php.net > Subject: [PHP] Re: MessageBox in PHP? > > > you can use JavaScript to do that... > <script> > alert('your message goes here'); > </script> > > embed this in your HTML source code. > > it is not possible to do so in PHP since it is server side. > > "Silvia Mahiques" <mahiques@posta.unizar.es> wrote in message > news:005101c15aec$9ccac280$1a9cd29b@tscpc6... > Hi!, > How can I make a messagebox in PHP to print errors or warning (such as in VB > or VC++)?. Is it possible? > > Silvia Mahiques > > > > > -- > 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 (#71848) next »