title: javascript inside php
body: <p>How can i write a javascript alert inside php ?
  For example if i want to popup a javascript alert in this if condition how I can do it ?</p>
  
  <pre><code>if(isset($_POST['downloadkey'])){
                  $key = $_POST['downloadkey'];
                  if($key != $data['download_key']){
                      echo 'Your key is wrong.';
                      echo '&lt;script type="text/javascript"&gt; alert(Your downlaod key is wrong, Please try again!);&lt;/script&gt;';
                  }
              }
  </code></pre>
  
  <p>Thanks in advance </p>