title: PHP break not working
body: <p>I am trying to disable a form on weekends. In my code I have a break after the variable $noaccess. When I run the code the form does not load. I am not sure what is going on please help.
   Here is my code:</p>
  
  <pre><code>$wkday = date('D');
  if ($wkday == "Sun") {
              $noaccess = "yes";
              break;
  } elseif ($currday == "Sat") {
              $noaccess = "yes";
  } else {
           $noaccess = "no";
  }
  </code></pre>
  
  <p>Here is the code for displaying the form:</p>
  
  <pre><code>if ($noaccess == "yes") {
  echo "You cannot access this area now";
  } else {
  //Form displays normally 
  }
  </code></pre>