title: Redirect of page using meta tag and PHP
body: <p>Here, in PHP code I am facing problem to redirect a page after valid login. </p>
  
  <p>Sample code:</p>
  
  <pre><code>    $result=mysql_query($sql);
  
      $count=mysql_num_rows($result);
  
      if($count==1){      
          echo "&lt;meta http-equiv='refresh' content='3;url=&lt;?php echo "home.php"; ?&gt;'&gt;";
      }
      else{
      ?&gt;
      &lt;META HTTP-EQUIV="refresh" content="5;URL=&lt;?php print "index.php"; ?&gt;"&gt;
      &lt;?php
      echo "Wrong Username or Password";
      }
  ?&gt;
  </code></pre>
  
  <p>Here I want to redirect the page to home.php.</p>
  
  <p>How can I modify the following line?</p>
  
  <pre><code>&lt;meta http-equiv='refresh' content='3;url=&lt;?php echo "home.php"; ?&gt;'&gt;
  </code></pre>