title: PHP If/ Else statement not working. Just following 'IF' line
body: <p>As simple as it seems, I dont know why this isn't working. </p>
  
  <p>I have a form with a few drop down selects that if $message_type is equal to other, the message is constructed out of just the details from $details.  </p>
  
  <p>If $message_type is anything else, it should string together a message.</p>
  
  <p>The variables are being passed and have checked that it is exactly 'Other' that is being passed through to the page using echo's so there is no spelling mistake.</p>
  
  <p>At the moment, whatever the message type, it always just creates the message to be just $details and does not follow the 'else' line if it does not equal 'Other'. </p>
  
  <pre><code>    if ($message_type = 'Other'){$message = $details;
  }
      else {$message = "Action to do: ".$message_type." On ".$user." Extra Details: ".$details;
  }
  </code></pre>
  
  <p>Any help as this is now really confusing me.</p>
  
  <p>Thanks</p>