title: Header Call Error PHP
body: <p>I am getting </p>
  
  <blockquote>
    <p>header may not contain more than a single header, new line detected </p>
  </blockquote>
  
  <p>somewhere from the following header calls but makes absolutely no sense to me... Anything I've missed?</p>
  
  <pre><code>// IF wristband is not assigned to attendee
  if ($wristassoc['attendid'] == '') {
      // IF attendee does not have a wristband assigned
      if ($attendwrist1['wristband'] == '') {
          header("Location: updateform.php?result=6&amp;attendid=".$attendid."&amp;wristband=".$wristband."");// Enter PIN to assign
      } else {
          // IF attendee has a wristband, is it this one?
          if ($attendwrist1['wristband'] == $wristband) {
              header("Location: wristbandassignform.php?result=5&amp;wristband=".$wristband." ");//Wristband already assigned to attendee
          } else {
              header("Location: updateform.php?result=4&amp;attendid=".$attendid."&amp;wristband=".$wristband.""); // Are you sure you want to update?
          } 
      } 
  } else {
      // IF wristband is assigned to this attendee, IF not, wristband assigned to someone else, duplicate possible
      if ($wristassoc['attendid'] == $attendid) {
          header("Location: wristbandassignform.php?result=9&amp;wristband=".$wristband."");//Wristband already assigned to attendee
      } else {
          header("Location: wristbandassignform.php?result=6");//Duplicate Possible
      }
  }
  </code></pre>