I am making a login and sign up page but I can't seem to make the HTML part show up. I think it is something wrong with the PHP code. I am hosting it on a website that has access to PHPMyAdmin and MySQL. I have looked up my problem and can't find any answers. I have checked the syntax but it is still not working. Can somebody please tell me what's wrong?
<?php
session_start();
if(isset($_SESSION['sig']))
{
   #User is already logged in
   echo("<script>window.location='home.php'</script>");
}
if(isset($_REQUEST['submit'])
{
   #Perform login action
   $username=$_REQUEST['UserUsername'];
   $password=$_REQUEST['UserPassword'];
   include ('db_login.php');
   $query=mysql_query("SELECT * FROM Users WHERE UserUsername='".$username."' AND UserPassword='".$password."'");
   $row=mysql_fetch_arr($query);
   if(empty($row))
   {
      #False Info / User doesn't exist
      echo('<script>alert("False login credentials!");</script'));
   }
   else
   {
      #User exists and login is successful
      $_SESSION['sig']="OK";
   }
}
?>
 
    