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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • pradnya

    #1

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

    Does php has any function like 'alert()' in javascript ?
    I want a popup window to display a message in php.
  • Erwin Moller

    #2
    Re: Does php has any function like 'alert()' in javascript ?

    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

    Comment

    • Gordon

      #3
      Re: Does php has any function like 'alert()' in javascript ?

      On Dec 12, 10:16 am, pradnya <pdu...@gmail.c omwrote:
      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">ale rt ("boo!");</script>');
      ?>

      Comment

      • Animesh K

        #4
        Re: Does php has any function like 'alert()' in javascript ?

        Gordon wrote:
        On Dec 12, 10:16 am, pradnya <pdu...@gmail.c omwrote:
        >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">ale rt ("boo!");</script>');
        ?>
        Loved this one. LOL!

        Comment

        Working...