I have a page on which users fill out a form to register their team:
<html>
<form name="newteam" method="get" action="regnewteam.php?team_name=$team_name&member1=$member1">
  <tr>
    <td>
      Register Team Name:
    </td>
    <td>
      <input name="team_name" type="text" value="<?php echo $team_name;?>">
      <?php settype($team_name, 'string');?>
    </td>
  </tr>
  <tr>
    <td>
      Member N1:
    </td>
    <td>
      <input name="member1" type="text" value="<?php echo $member1;?>">
      <?php settype($member1, 'string');?>
    </td>
  </tr>
  <tr>
    <td></td>
    <td>
      <input type="submit" id="submit" value="Register">
    </td>
  </tr>
</form>
</html>
Once they submit it I check if the two fields are full in regnewteam.php using if (isset($_GET['team_name']) && isset($_GET['member1'])), but when the fields are empty it still executes the code in the if statement.
Why is it doing this?
 
     
     
    