I have tried the elimination method and it seems to output the message correctly
when i remove this
elseif ($a = "deleted")
{
$this->property_type_deleted();
}
It outputs the message in "else"
But when i put it back, it then fails to output the message
Is "deleted" a keyword of some sort? as when it's used no output comes after that as shown below
<?
if(!isset($_GET['a']))
{
echo "no selection";
}
else
{
$a = $_GET['a'];
if ($a == "item1")
{
$this->property_type_add();
}
elseif ($a == "item2")
{
$this->property_type_added();
}
elseif ($a = "deleted")
{
$this->property_type_deleted();
}
else
{
echo "This message is not output";
}
echo "But this message is output";
}
?>