By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 904 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

Does php has any function like 'alert()' in javascript ?

P: n/a
Does php has any function like 'alert()' in javascript ?
I want a popup window to display a message in php.
Dec 12 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
pradnya wrote:
Does php has any function like 'alert()' in javascript ?
I want a popup window to display a message in php.
PHP runs on the server in almost all cases.
Do you want a popup on the server?

If you want PHP to alert something, simply use the ouput PHP sends back
to the browser.

Erwin Moller
Dec 12 '07 #2

P: n/a
On Dec 12, 10:16 am, pradnya <pdu...@gmail.comwrote:
Does php has any function like 'alert()' in javascript ?
I want a popup window to display a message in php.
<?php
echo ('<script type="text/javascript">alert ("boo!");</script>');
?>
Dec 12 '07 #3

P: n/a
Gordon wrote:
On Dec 12, 10:16 am, pradnya <pdu...@gmail.comwrote:
>Does php has any function like 'alert()' in javascript ?
I want a popup window to display a message in php.

<?php
echo ('<script type="text/javascript">alert ("boo!");</script>');
?>
Loved this one. LOL!
Dec 12 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.