title: Display error message for 3 seconds and then fades out
body: <p>Based on what my PHP file returns i want to show a message on top of the Web page.</p>
  
  <pre><code>$msg = "Success"; // or fail
  $redirecturl = "index.php?msg=".$msg;
  header("Location: $redirecturl");
  </code></pre>
  
  <p>HTML code</p>
  
  <pre><code>&lt;?php   $msg=isset($_GET['msg']) ? $_GET['msg'] : "";?&gt;
  &lt;div id="display-success"&gt;&lt;?php echo $msg; ?&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Now if i get the <code>Success</code> message i need to print a small box that appears (for 3 seconds, then fades out) that shows the message <code>success</code> in a <strong>green</strong> background. And if its  <code>failure</code> then i want to display a message in a <strong>Red</strong> background for 3 seconds and then fades out.</p>