Javascript in PHP code
<p>I found this code on the internet on how to to display message/pop up box.</p>

<pre><code>&lt;? echo "&lt;script language=\"JavaScript\"&gt;\n"; 
   echo "alert('$msg1')";
   echo "alert('$msg2')"; 
   &lt;/script&gt;"; 
?&gt;
</code></pre>

<p>AND</p>

<pre><code>&lt;? echo "&lt;script&gt;alert('$msg1' )&lt;/script&gt;" &lt;?
</code></pre>

<p>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. </p>

<p>Can it be done in all in one box? I try using '\n' or 'br>'...also cannot or i did it wrong? Any idea? Is there any reference or tutorial on this? </p>
