As simple as it seems, I dont know why this isn’t working.
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.
If $message_type is anything else, it should string together a message.
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.
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’.
if ($message_type = 'Other'){$message = $details;
}
else {$message = "Action to do: ".$message_type." On ".$user." Extra Details: ".$details;
}
Any help as this is now really confusing me.
Thanks
you have
if ($message_type = 'Other')you should have
if ($mesage_type == 'Other')I suppose it is just writing mistake, so I wont be telling what is the diferance 🙂