title: Another PHP if/else not working as expected
body: <p>I haven't been able to find a solution to this issue and hope that a another set of eyes may pick up on something. The else $confirm = line is not executed when the first "if" is not true and I can't figure out why.</p>
  
  <pre><code>if($_POST['zip'] &amp;&amp; $_POST['country']=='USA' &amp;&amp; !empty($fax)){
      $plus4 = substr($_POST["zip"],6,4);
      if (empty($plus4)) {
          $link = '&lt;a href="http://zip4.usps.com/zip4/welcome.jsp?city='.$city.'&amp;address2='.$address.'&amp;state='.$state.'&amp;zip5='.$zip.'" class="greybox" onclick="window.scrollTo(0,0)"&gt;Zip + 4&lt;/a&gt;';
          $msg = "Your Zip + 4 was not provided! We cannot fax your Representative without your Zip+4.&lt;br/&gt;Click here to find your ".$link ;
          print "&lt;p style=\"color: red;\"&gt;&lt;b&gt;$msg&lt;br/&gt;&lt;br/&gt;&lt;/b&gt;&lt;/p&gt;";
      }
      if (empty($_POST['state']) || empty($_POST['zip'])) $statezip = false ; // Check for State &amp; Zip Required
      else $statezip = true ;
      //if (empty($state) || empty($zip) || empty($plus4)) $statezip = false ; // Check for State &amp; Zip Required
      $confirm = !empty($_POST['name']) &amp;&amp; !empty($_POST['from']) &amp;&amp; !empty($_POST['address']) &amp;&amp; !empty($_POST['city']) &amp;&amp; !empty($_POST['country']) &amp;&amp; $statezip == true ; // Verify required fields
  }
  else $confirm = !empty($_POST['name']) &amp;&amp; !empty($_POST['from']) &amp;&amp; !empty($address) &amp;&amp; !empty($city) &amp;&amp; !empty($country) &amp;&amp; $statezip == true ; // Verify required fields
  </code></pre>