You can use one "if", multiple "elseif"s, and end with one "else". Like this:
if ($blah=="A") { echo "A"; }
elseif ($blah=="B") { echo "B"; }
elseif ($blah=="C") { echo "C"; }
else { echo "Not A, B, or C."; }
You can use "if"s within "if"s. Like this:
if ($blah=="A")
{
if ($show=="Yes") { echo "Here is an A."; }
else { echo "You don't want to see an A."; }
}
elseif ($blah=="B")
{
if ($show=="Yes") { echo "Here is a B."; }
else { echo "You don't want to see a B."; }
}
else { echo "No A's and no B's."; }
My example is meaningless except to show you how if's go within if's. Have fun.
AaronZoller.com