title: issue with HTML and PHP language
body: <p>I have issue with my login page, when I add my code don't display any action.</p>
  
  <p>please see the below</p>
  
  <p>Index.html</p>
  
  <pre><code>  &lt;form  &gt;
  
        &lt;fieldset style="width:355;"&gt;
  
            &lt;legend&gt;&lt;/legend&gt;
  
            &lt;div id="Form"&gt;
            &lt;br&gt;&lt;p&gt;&lt;b&gt; Log in&lt;/b&gt;&lt;/p&gt;
  
            &lt;br&gt;
  
                       &lt;/div&gt;
  
            &lt;div class="col1 pad_left1"&gt;
  
                &lt;form name="logForm" onsubmit="return log()" action="log_exe.php" method="POST" &gt;
  
                   &amp;nbsp; &lt;label style="font-size:100%;" &gt;Email:&lt;/label&gt; &lt;/br&gt;
                    &amp;nbsp;&amp;nbsp;&lt;input type="text" name="email1" placeholder="user@hotmail.com" id="email1" style="border:1px solid black; width:80%;" /&gt; &lt;b style="color:red;"&gt;*&lt;/b&gt; &lt;/br&gt;&lt;br&gt;
  
                    &amp;nbsp; &lt;label style="font-size:100%;" &gt; password:&lt;/label&gt; &lt;/br&gt;
                     &amp;nbsp;&amp;nbsp;&lt;input type="password" name="pass1" placeholder="Password" id="pass1" style="border:1px solid black; width:80%;" /&gt; &lt;b style="color:red;"&gt;*&lt;/b&gt;
                    &lt;b style="display:none; color:red;" id="hide1"&gt;Sorry !! Wrong username or password&lt;/b&gt;
                    &lt;/br&gt;
                    &lt;br&gt;
                    &amp;nbsp;&amp;nbsp;&lt;input style="font-size:120%;width:40%;padding:1%" type="submit" value="Log in" name="login" /&gt;&lt;/br&gt;&lt;br&gt;
  
                &lt;/form&gt;
            &lt;/div&gt;
  
  
        &lt;/fieldset&gt;
    &lt;/form&gt;
  </code></pre>
  
  <p>log_exe.php</p>
  
  <pre><code>&lt;?php
  session_start();
  $DB_HOST = 'localhost';
  $DB_USER = 'root';
  $DB_PASSWORD = '';
  $DB_DATABASE = 'la';
  
  $con=mysql_connect($DB_HOST,$DB_USER,$DB_PASSWORD);
  if(!$con)
  {
      die('Failed to connect to server: '.mysql_error());
  }
  
  $db=mysql_select_db($DB_DATABASE);
  if(!$db)
  {
      die("Unable to select database");
  }
  
  $email =$_POST['email1'];
  $pass =$_POST['pass1'];
  
  $qry="SELECT Email FROM user WHERE Email='".$email."' AND Password='".$pass."';";
  $qry2="SELECT email FROM Admin WHERE email='".$email."' AND password='".$pass."';";
  
  $result=mysql_query($qry);
  $result2=mysql_query($qry2);
  
  
  if(mysql_num_rows($result) == 1)
  {
      $admin = mysql_fetch_assoc($result);
  
      $_SESSION['Email'] = $admin['Email'];
  
      header("location: schedule.php?Email=".$admin['Email']);
      exit();
  }
  
  
  if(mysql_num_rows($result2) == 1)
  {
      $admin = mysql_fetch_assoc($result2);
  
      $_SESSION['Email'] = $admin['Email'];
  
      header("location: controlpanel.php?Email=".$admin['Email']);
      exit();
  }
  
  else
  {
      die ("&lt;script&gt; window.confirm(\"Sorry !! Wrong username or password !!\");&lt;/script&gt; &lt;a href='index.html#!/page_Schedule'&gt;Click here&lt;/a&gt; to return to login page");
  }
  
  ?&gt;
  </code></pre>
  
  <p>My problem is my website don't gave me response , when I enter email and pass the page is refresh to other page and the link became like this </p>
  
  <p><a href="http://localhost/myfolder/index.html?email1=user%40hotmail.com&amp;pass1=123&amp;login=Log+in#.php" rel="nofollow">http://localhost/myfolder/index.html?email1=user%40hotmail.com&amp;pass1=123&amp;login=Log+in#.php</a></p>
  
  <p>Thank you for your response </p>