Forum Moderators: coopster
if ($FlagDistance='Y' ¦¦ $FlagDD='Y')
{
?>
<strong><? echo $name?></strong> is located in <? echo $town?>, <? echo $Beach?> Km from the Beach, <? echo $Center?> Km from the Center, <? echo $Port?> Km from the Port and <? echo $Airport?> Km from the Airport of <? echo $location?>.
<br>
<strong>Addiotional Information:</strong>
<br>
<?
echo $distancesdescr;
}
else
{
if ($FlagDistance ='Y')
{
?>
<strong><? echo $name?></strong> is located in <? echo $town?>, <? echo $Beach?> Km from the Beach, <? echo $Center?> Km from the Center, <? echo $Port?> Km from the Port and <? echo $Airport?> Km from the Airport of <? echo $location?>.
<?
}
else
{
echo $distancesdescr;
}
}
?>
the idea is that if if flagdistance and flagDD are both Y then display the following...if not ...check if flag distance is Y and if not display only the $distancesdescr;....
the current script always displays the "$FlagDistance='Y' ¦¦ $FlagDD='Y'" part even whenboth rules dont apply,,
ANY IDEAS?