I'd start by seperating your scripting layer from you presentation layer.
Perhaps using a ''switch" could help you as well.
Quote:
$var = 'dog';
switch( $var ){
case 'dog':
echo "woef woef";
break;
case 'cat':
echo "miauw";
break;
default:
echo "no cat or dog found";
}
|