Javacsript in PHP code
        Posted  
        
            by user147685
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user147685
        
        
        
        Published on 2010-04-23T01:21:01Z
        Indexed on 
            2010/04/23
            1:23 UTC
        
        
        Read the original article
        Hit count: 568
        
php
|JavaScript
Hi all,
I found this code on the internet on how to to display message/pop up box.
<? echo "<script language=\"JavaScript\">\n"; 
   echo "alert('$msg1')";
   echo "alert('$msg2')"; 
   </script>"; 
?>
AND
<? echo "<script>alert('$msg1' )</script>" <?
I want to display messages to the user by popup message. all the messages will be appears in one message box. For above example, the message will be appeared in two box.
Can it be done in all in one box? I try using '\n' or 'br>'...also cannot or i did it wrongly? any idea?? Is there any reference or tutorial on this? really apreaciate.. thx all..
© Stack Overflow or respective owner