Php

Discussion in 'Software' started by BigR, Nov 4, 2004.

  1. BigR

    BigR Private E-2

    is there a function that will allow me to make an alert/msg box pop up on the screen in php
     
  2. goldfish

    goldfish Lt. Sushi.DC

    No, you gotta do that thru Javascript (unless you mean on the server)
     
  3. animatorStrike

    animatorStrike <a href="http://www.acrodata.com/fun/waaa.jpg">Rid

    Yeah, you gotta use JS. I'm learning it, so I can help you. Here's the code. Put this in your <head>:

    Code:
    <script type="text/javascript">
    function alert()
    {
    alert ("Blah blah blah...")
    }
    </script>
    
    And put this in your <body>:

    Code:
    <body onload="alert()">
    
    That's basically it.
     
  4. Wookie

    Wookie Sergeant Major

    to help you understand why, PHP and ASP are code that is executed on the Server, when you access a page that is PHP the server is executing it as if it were an EXE. You can actually print to the server and all sorts of stuff but nothing on user end clients. Javascript on the other hand is executed by the users browser, which means you can have some more interactive stuff on the user side.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds