Hi,
I don't know why the following switch statement does not executed:
error_log("topic: $topic",3,"debug.txt");
switch ($tpoic)
{
case "info":
$mail_subject = "Information request";
break;
case "comments":
$mail_subject = "Comments ";
break;
case "event":
$mail_subject = "Event information request ";
break;
}
I can see in debug.txt that $topic is set to one of "info", "comments" or "events", yet the $mail_subject is never set.
Thanks.