php conditional problem
<p>Goal:
User only selects <strong>one</strong>, <strong>only one</strong> option at a given time for the <strong>denomination</strong>, either some value of Nickels <strong>only</strong>,
some <strong>value of Dimes</strong> <strong>only</strong>, or some <strong>value of Quarters only</strong>.</p>

<p><strong>Problems:</strong> Currently the code only <strong>defaults to Nickels only</strong>?</p>

<p><strong>Pre-existing condtion:</strong>
If I select a different denomination, for example, <strong>Quarters only</strong>, I only get the values for Nickels, the same applies for Dimes?</p>

<p>Code Snippet:</p>

<pre><code>if($denomination["Nickels"] != NULL)

{
$value = $denomination["Nickels"];
echo $value . " is the value of selected Nickels";
}

else if ($denomination["Dimes"] != NULL)
{
$value = $denomination["Dimes"];
echo $value . " is the value of  selected Dimes";
}

else if ($denomination["Quarters"] != NULL)
{
$value = $denomination["Quarters"];
echo  $value . "is the value of selected Quarters";
}
</code></pre>
